mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-13 08:19:50 -05:00
Fix leak in keepassxc-cli Clip command (#3430)
This commit is contained in:
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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user