CMake: Fix crash when changing build directory several times in a row

Change-Id: I349e72a321f1a0cdcbce4f948c363336815ef3f3
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2016-03-12 23:29:43 +02:00
committed by Tobias Hunger
parent a7d89e6bc8
commit 62570e1640

View File

@@ -295,6 +295,8 @@ void BuildDirManager::stopProcess()
cleanUpProcess();
if (!m_future)
return;
m_future->reportCanceled();
m_future->reportFinished();
delete m_future;