diff options
Diffstat (limited to 'plugins/TabSRMM/src/msgs.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgs.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp index de0e3fc24e..0cca4b3074 100644 --- a/plugins/TabSRMM/src/msgs.cpp +++ b/plugins/TabSRMM/src/msgs.cpp @@ -430,8 +430,10 @@ int SplitmsgShutdown(void) DestroyCursor(PluginConfig.hCurHyperlinkHand);
DestroyCursor(PluginConfig.hCurSplitWE);
FreeLibrary(GetModuleHandleA("riched20"));
- if (g_hIconDLL)
+ if (g_hIconDLL) {
FreeLibrary(g_hIconDLL);
+ g_hIconDLL = NULL;
+ }
ImageList_RemoveAll(PluginConfig.g_hImageList);
ImageList_Destroy(PluginConfig.g_hImageList);
@@ -453,11 +455,6 @@ int SplitmsgShutdown(void) mir_free(Utils::rtf_ctable);
UnloadTSButtonModule();
-
- if (g_hIconDLL) {
- FreeLibrary(g_hIconDLL);
- g_hIconDLL = 0;
- }
return 0;
}
|