diff options
author | George Hazan <george.hazan@gmail.com> | 2013-08-21 18:26:24 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-08-21 18:26:24 +0000 |
commit | bf11a9c30203194d42c5b4e088e50ae04469b8a8 (patch) | |
tree | b1295005f037073c4e591c875816d3250cff321f /plugins/TabSRMM/src/msgs.cpp | |
parent | 5d2d95d9492b9d40aed28138bb9d085bf58e4f99 (diff) |
one time is enough
git-svn-id: http://svn.miranda-ng.org/main/trunk@5774 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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;
}
|