diff options
author | George Hazan <george.hazan@gmail.com> | 2013-02-21 11:23:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-02-21 11:23:29 +0000 |
commit | 70d06b6ba6483e65aa036d9579c8716c86e5c909 (patch) | |
tree | 4b43336491378f9b6fb90c1213e3da89b85729fb /src | |
parent | 53291bd6ff2e14fd6a3053e5e252571140c8934e (diff) |
added forward service cleanup for the dynamically unloaded plugins
git-svn-id: http://svn.miranda-ng.org/main/trunk@3667 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/plugins/newplugins.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/plugins/newplugins.cpp b/src/modules/plugins/newplugins.cpp index 1800080c82..94c04b23e2 100644 --- a/src/modules/plugins/newplugins.cpp +++ b/src/modules/plugins/newplugins.cpp @@ -341,7 +341,7 @@ void Plugin_Uninit(pluginEntry* p) pluginList.remove(p);
}
-int Plugin_UnloadDyn(pluginEntry* p)
+int Plugin_UnloadDyn(pluginEntry *p)
{
if (p->bpi.hInst) {
if ( CallPluginEventHook(p->bpi.hInst, hOkToExitEvent, 0, 0) != 0)
@@ -349,6 +349,9 @@ int Plugin_UnloadDyn(pluginEntry* p) CallPluginEventHook(p->bpi.hInst, hPreShutdownEvent, 0, 0);
CallPluginEventHook(p->bpi.hInst, hShutdownEvent, 0, 0);
+
+ KillModuleEventHooks(p->bpi.hInst);
+ KillModuleServices(p->bpi.hInst);
}
int hLangpack = p->hLangpack;
|