forked from qt-creator/qt-creator
NodeInstanceView: Fix potential leak of process instances
Don't leak the process when d'tor of NodeInstanceView was called after successful start of the process and before process finished. Change-Id: Ib1e0192ebfa20b6e5e43c9247a18e9092c64b2d6 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
@@ -2135,7 +2135,7 @@ void NodeInstanceView::handleShaderChanges()
|
|||||||
QStringList args = baseArgs;
|
QStringList args = baseArgs;
|
||||||
args.append(outPath.toString());
|
args.append(outPath.toString());
|
||||||
args.append(shader);
|
args.append(shader);
|
||||||
auto qsbProcess = new Utils::QtcProcess;
|
auto qsbProcess = new Utils::QtcProcess(this);
|
||||||
connect(qsbProcess, &Utils::QtcProcess::done, this, [this, qsbProcess, shader] {
|
connect(qsbProcess, &Utils::QtcProcess::done, this, [this, qsbProcess, shader] {
|
||||||
handleQsbProcessExit(qsbProcess, shader);
|
handleQsbProcessExit(qsbProcess, shader);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user