Fix leak in keepassxc-cli Clip command (#3430)
This commit is contained in:
committed by
Jonathan White
parent
b9e1088f74
commit
58d357e9ce
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user