From bf11a9c30203194d42c5b4e088e50ae04469b8a8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 21 Aug 2013 18:26:24 +0000 Subject: one time is enough git-svn-id: http://svn.miranda-ng.org/main/trunk@5774 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/msgs.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'plugins/TabSRMM/src') 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; } -- cgit v1.2.3