mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-17 21:11:39 +00:00
Destroy context when unloading plugins.
--HG-- branch : gsoc2014-dfighter
This commit is contained in:
parent
f060adbed7
commit
d4ee31ed63
12 changed files with 36 additions and 0 deletions
|
@ -44,6 +44,9 @@ namespace BNPManager
|
||||||
}
|
}
|
||||||
qDeleteAll(m_autoReleaseObjects);
|
qDeleteAll(m_autoReleaseObjects);
|
||||||
m_autoReleaseObjects.clear();
|
m_autoReleaseObjects.clear();
|
||||||
|
|
||||||
|
delete m_libContext;
|
||||||
|
m_libContext = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool BNPManagerPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
bool BNPManagerPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
||||||
|
|
|
@ -44,6 +44,9 @@ DispSheetIdPlugin::~DispSheetIdPlugin()
|
||||||
QAction *a = menuManager->action( "SheetIdView" );
|
QAction *a = menuManager->action( "SheetIdView" );
|
||||||
menuManager->unregisterAction( "SheetIdView" );
|
menuManager->unregisterAction( "SheetIdView" );
|
||||||
delete a;
|
delete a;
|
||||||
|
|
||||||
|
delete m_LibContext;
|
||||||
|
m_LibContext = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DispSheetIdPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
bool DispSheetIdPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
||||||
|
|
|
@ -39,6 +39,9 @@ GeorgesEditorPlugin::~GeorgesEditorPlugin()
|
||||||
}
|
}
|
||||||
qDeleteAll(m_autoReleaseObjects);
|
qDeleteAll(m_autoReleaseObjects);
|
||||||
m_autoReleaseObjects.clear();
|
m_autoReleaseObjects.clear();
|
||||||
|
|
||||||
|
delete m_libContext;
|
||||||
|
m_libContext = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GeorgesEditorPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
bool GeorgesEditorPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
||||||
|
|
|
@ -37,6 +37,9 @@ namespace GUIEditor
|
||||||
|
|
||||||
qDeleteAll(m_autoReleaseObjects);
|
qDeleteAll(m_autoReleaseObjects);
|
||||||
m_autoReleaseObjects.clear();
|
m_autoReleaseObjects.clear();
|
||||||
|
|
||||||
|
delete m_libContext;
|
||||||
|
m_libContext = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GUIEditorPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
bool GUIEditorPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
||||||
|
|
|
@ -39,6 +39,9 @@ LandscapeEditorPlugin::~LandscapeEditorPlugin()
|
||||||
}
|
}
|
||||||
qDeleteAll(m_autoReleaseObjects);
|
qDeleteAll(m_autoReleaseObjects);
|
||||||
m_autoReleaseObjects.clear();
|
m_autoReleaseObjects.clear();
|
||||||
|
|
||||||
|
delete m_libContext;
|
||||||
|
m_libContext = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LandscapeEditorPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
bool LandscapeEditorPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
||||||
|
|
|
@ -62,6 +62,9 @@ namespace Plugin
|
||||||
NLMISC::AssertLog->removeDisplayer(m_displayer);
|
NLMISC::AssertLog->removeDisplayer(m_displayer);
|
||||||
NLMISC::InfoLog->removeDisplayer(m_displayer);
|
NLMISC::InfoLog->removeDisplayer(m_displayer);
|
||||||
delete m_displayer;
|
delete m_displayer;
|
||||||
|
|
||||||
|
delete m_libContext;
|
||||||
|
m_libContext = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CLogPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
bool CLogPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
||||||
|
|
|
@ -30,6 +30,9 @@ MissionCompilerPlugin::~MissionCompilerPlugin()
|
||||||
}
|
}
|
||||||
qDeleteAll(m_autoReleaseObjects);
|
qDeleteAll(m_autoReleaseObjects);
|
||||||
m_autoReleaseObjects.clear();
|
m_autoReleaseObjects.clear();
|
||||||
|
|
||||||
|
delete m_LibContext;
|
||||||
|
m_LibContext = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MissionCompilerPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
bool MissionCompilerPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
||||||
|
|
|
@ -23,6 +23,9 @@ ObjectViewerPlugin::~ObjectViewerPlugin()
|
||||||
qDeleteAll(_autoReleaseObjects);
|
qDeleteAll(_autoReleaseObjects);
|
||||||
_autoReleaseObjects.clear();
|
_autoReleaseObjects.clear();
|
||||||
Modules::release();
|
Modules::release();
|
||||||
|
|
||||||
|
delete _LibContext;
|
||||||
|
_LibContext = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ObjectViewerPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
bool ObjectViewerPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
||||||
|
|
|
@ -45,6 +45,9 @@ SheetBuilderPlugin::~SheetBuilderPlugin()
|
||||||
QAction *a = menuManager->action( "SheetBuilder" );
|
QAction *a = menuManager->action( "SheetBuilder" );
|
||||||
menuManager->unregisterAction( "SheetBuilder" );
|
menuManager->unregisterAction( "SheetBuilder" );
|
||||||
delete a;
|
delete a;
|
||||||
|
|
||||||
|
delete m_LibContext;
|
||||||
|
m_LibContext = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SheetBuilderPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
bool SheetBuilderPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
||||||
|
|
|
@ -42,6 +42,9 @@ TileEditorPlugin::~TileEditorPlugin()
|
||||||
}
|
}
|
||||||
qDeleteAll(m_autoReleaseObjects);
|
qDeleteAll(m_autoReleaseObjects);
|
||||||
m_autoReleaseObjects.clear();
|
m_autoReleaseObjects.clear();
|
||||||
|
|
||||||
|
delete m_LibContext;
|
||||||
|
m_LibContext = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TileEditorPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
bool TileEditorPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
||||||
|
|
|
@ -48,6 +48,9 @@ TranslationManagerPlugin::~TranslationManagerPlugin()
|
||||||
}
|
}
|
||||||
qDeleteAll(_autoReleaseObjects);
|
qDeleteAll(_autoReleaseObjects);
|
||||||
_autoReleaseObjects.clear();
|
_autoReleaseObjects.clear();
|
||||||
|
|
||||||
|
delete _LibContext;
|
||||||
|
_LibContext = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TranslationManagerPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
bool TranslationManagerPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
||||||
|
|
|
@ -43,6 +43,9 @@ WorldEditorPlugin::~WorldEditorPlugin()
|
||||||
}
|
}
|
||||||
qDeleteAll(m_autoReleaseObjects);
|
qDeleteAll(m_autoReleaseObjects);
|
||||||
m_autoReleaseObjects.clear();
|
m_autoReleaseObjects.clear();
|
||||||
|
|
||||||
|
delete m_libContext;
|
||||||
|
m_libContext = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WorldEditorPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
bool WorldEditorPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
||||||
|
|
Loading…
Reference in a new issue