Commit acca83ad authored by Kai Koehne's avatar Kai Koehne

Fix crash on exit

Fixes a crash on exit in ~AnalyzerManager, where
EditorManager::instance() might be already 0.

Change-Id: Ie1d5aa5590d2dd763f5cb8c7e0a8a5e593fd2af6
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent a60960a8
......@@ -107,10 +107,8 @@ public:
~AnalyzerMode()
{
// Make sure the editor manager does not get deleted.
delete m_widget;
m_widget = 0;
EditorManager::instance()->setParent(0);
}
};
......
......@@ -93,8 +93,6 @@ EditMode::EditMode() :
EditMode::~EditMode()
{
// Make sure the editor manager does not get deleted
EditorManager::instance()->setParent(0);
delete m_splitter;
}
......
......@@ -513,8 +513,6 @@ public:
~DebugMode()
{
// Make sure the editor manager does not get deleted.
//EditorManager::instance()->setParent(0);
delete m_widget;
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment