forked from qt-creator/qt-creator
Valgrind: Fix early deletion of process
Change-Id: I4d2606b1a69ae3f071b4fe702cbaf63d102e5e14 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
7ba734162c
commit
8a1bb5aeb3
@@ -155,7 +155,7 @@ void CallgrindController::processFinished(int rc, QProcess::ExitStatus status)
|
||||
QTC_ASSERT(m_process, return);
|
||||
const QString error = m_process->errorString();
|
||||
|
||||
delete m_process;
|
||||
m_process->deleteLater(); // Called directly from finished() signal in m_process
|
||||
m_process = 0;
|
||||
|
||||
if (rc != 0 || status != QProcess::NormalExit) {
|
||||
|
||||
Reference in New Issue
Block a user