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:
Jarek Kobus
2022-06-22 06:59:26 +02:00
parent bbbb1fd0a5
commit 4686db5590

View File

@@ -2135,7 +2135,7 @@ void NodeInstanceView::handleShaderChanges()
QStringList args = baseArgs;
args.append(outPath.toString());
args.append(shader);
auto qsbProcess = new Utils::QtcProcess;
auto qsbProcess = new Utils::QtcProcess(this);
connect(qsbProcess, &Utils::QtcProcess::done, this, [this, qsbProcess, shader] {
handleQsbProcessExit(qsbProcess, shader);
});