Core: Do not try to remove objecs from global object pool

... that is not put in there anymore.

This amends 7acdf911a2

Change-Id: I583511dfc7c8da9a6c594e44a4ec697a2057ef9c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2018-03-05 13:04:41 +01:00
parent 43b7f0c3ea
commit 91619d20e7

View File

@@ -219,10 +219,8 @@ EditorManagerPrivate::EditorManagerPrivate(QObject *parent) :
EditorManagerPrivate::~EditorManagerPrivate() EditorManagerPrivate::~EditorManagerPrivate()
{ {
if (ICore::instance()) { if (ICore::instance())
ExtensionSystem::PluginManager::removeObject(m_openEditorsFactory);
delete m_openEditorsFactory; delete m_openEditorsFactory;
}
// close all extra windows // close all extra windows
for (int i = 0; i < m_editorAreas.size(); ++i) { for (int i = 0; i < m_editorAreas.size(); ++i) {