forked from qt-creator/qt-creator
QmakeProjectManager: Fix access to deleted object
Amends c7d8b9b01c
.
Fixes: QTCREATORBUG-23576
Change-Id: I7de6679f3dd5ba950561d560195e5af5bfaf90a5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -1205,9 +1205,9 @@ QmakeProFile::~QmakeProFile()
|
|||||||
qDeleteAll(m_extraCompilers);
|
qDeleteAll(m_extraCompilers);
|
||||||
m_parseFutureWatcher->cancel();
|
m_parseFutureWatcher->cancel();
|
||||||
m_parseFutureWatcher->waitForFinished();
|
m_parseFutureWatcher->waitForFinished();
|
||||||
delete m_parseFutureWatcher;
|
|
||||||
if (m_readerExact)
|
if (m_readerExact)
|
||||||
applyAsyncEvaluate();
|
applyAsyncEvaluate();
|
||||||
|
delete m_parseFutureWatcher;
|
||||||
|
|
||||||
cleanupProFileReaders();
|
cleanupProFileReaders();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user