From 43908113c0b81a16a62af304d2d97b6df3c94cd3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Sep 2012 16:41:20 +0000 Subject: fix for one rare crash git-svn-id: http://svn.miranda-ng.org/main/trunk@1732 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/plugins/newplugins.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3