mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-06 04:15:01 -04:00
Fix leak in keepassxc-cli Clip command (#3430)
This commit is contained in:
parent
b9e1088f74
commit
58d357e9ce
1 changed files with 2 additions and 1 deletions
|
@ -25,6 +25,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
|
#include <QScopedPointer>
|
||||||
|
|
||||||
namespace Utils
|
namespace Utils
|
||||||
{
|
{
|
||||||
|
@ -205,7 +206,7 @@ namespace Utils
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto* clipProcess = new QProcess(nullptr);
|
QScopedPointer<QProcess> clipProcess(new QProcess(nullptr));
|
||||||
clipProcess->start(programName, arguments);
|
clipProcess->start(programName, arguments);
|
||||||
clipProcess->waitForStarted();
|
clipProcess->waitForStarted();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue