diff --git a/src/cli/Utils.cpp b/src/cli/Utils.cpp index 749f7ff20..a23f872fd 100644 --- a/src/cli/Utils.cpp +++ b/src/cli/Utils.cpp @@ -25,6 +25,7 @@ #endif #include +#include namespace Utils { @@ -205,7 +206,7 @@ namespace Utils return EXIT_FAILURE; } - auto* clipProcess = new QProcess(nullptr); + QScopedPointer clipProcess(new QProcess(nullptr)); clipProcess->start(programName, arguments); clipProcess->waitForStarted();