OSDN Git Service

debugger: fix crash on exit
authorhjk <qtc-committer@nokia.com>
Tue, 18 Jan 2011 08:46:32 +0000 (09:46 +0100)
committerhjk <qtc-committer@nokia.com>
Tue, 18 Jan 2011 08:47:17 +0000 (09:47 +0100)
src/plugins/debugger/debuggerengine.cpp

index e8ce2cc..1af3cb7 100644 (file)
@@ -1027,7 +1027,7 @@ void DebuggerEnginePrivate::doFinishDebugger()
     m_engine->showMessage(_("NOTE: FINISH DEBUGGER"));
     QTC_ASSERT(state() == DebuggerFinished, qDebug() << m_engine << state());
     resetLocation();
-    if (isMasterEngine())
+    if (isMasterEngine() && m_runControl)
         m_runControl->debuggingFinished();
 }