summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-09-30 16:41:20 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-09-30 16:41:20 +0000
commit43908113c0b81a16a62af304d2d97b6df3c94cd3 (patch)
tree54b6af66c6e004cc3602d71dae417e472548761d /src
parent75fe175886ceca31d4cade1c067de7b0e1e30d87 (diff)
fix for one rare crash
git-svn-id: http://svn.miranda-ng.org/main/trunk@1732 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/modules/plugins/newplugins.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/plugins/newplugins.cpp b/src/modules/plugins/newplugins.cpp
index 4b16fbeb5c..1464c53e1d 100644
--- a/src/modules/plugins/newplugins.cpp
+++ b/src/modules/plugins/newplugins.cpp
@@ -316,8 +316,10 @@ LBL_Ok:
void Plugin_Uninit(pluginEntry* p)
{
// if the basic API check had passed, call Unload if Load(void) was ever called
- if (p->pclass & PCLASS_LOADED)
+ if (p->pclass & PCLASS_LOADED) {
p->bpi.Unload();
+ p->pclass &= ~PCLASS_LOADED;
+ }
// release the library
HINSTANCE hInst = p->bpi.hInst;