Fix leak in keepassxc-cli Clip command (#3430)

This commit is contained in:
James Ring 2019-08-19 16:56:00 -07:00 committed by Jonathan White
parent b9e1088f74
commit 58d357e9ce

View File

@ -25,6 +25,7 @@
#endif
#include <QProcess>
#include <QScopedPointer>
namespace Utils
{
@ -205,7 +206,7 @@ namespace Utils
return EXIT_FAILURE;
}
auto* clipProcess = new QProcess(nullptr);
QScopedPointer<QProcess> clipProcess(new QProcess(nullptr));
clipProcess->start(programName, arguments);
clipProcess->waitForStarted();