forked from qt-creator/qt-creator
Core: Fix crash on reaper shutdown
Change-Id: I08dd990f851786f2af55076800d694855b859687 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
28c70724ee
commit
65bc23ba55
@@ -69,7 +69,7 @@ bool ProcessReaper::isFinished() const
|
|||||||
|
|
||||||
void ProcessReaper::nextIteration()
|
void ProcessReaper::nextIteration()
|
||||||
{
|
{
|
||||||
QProcess::ProcessState state = m_process->state();
|
QProcess::ProcessState state = m_process ? m_process->state() : QProcess::NotRunning;
|
||||||
if (state == QProcess::NotRunning || m_emergencyCounter > 5) {
|
if (state == QProcess::NotRunning || m_emergencyCounter > 5) {
|
||||||
delete m_process;
|
delete m_process;
|
||||||
m_process = nullptr;
|
m_process = nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user