summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/chat
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-18 22:59:17 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-18 22:59:17 +0000
commitd3706e3476a8b53e687b4d30324982b860b98c84 (patch)
tree4e2c037fd276a556f38139a85533133941cf6cbe /plugins/TabSRMM/src/chat
parenta1c729f0feb8753cb295d5ba491f2fbfd1d00d97 (diff)
- wiped out very impressive font reloading on exit;
- all GDI handles now closed git-svn-id: http://svn.miranda-ng.org/main/trunk@9857 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/chat')
-rw-r--r--plugins/TabSRMM/src/chat/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/TabSRMM/src/chat/main.cpp b/plugins/TabSRMM/src/chat/main.cpp
index 8d1bf58ffc..da76841f5f 100644
--- a/plugins/TabSRMM/src/chat/main.cpp
+++ b/plugins/TabSRMM/src/chat/main.cpp
@@ -319,6 +319,13 @@ int Chat_Load()
// unload the module. final cleanup
int Chat_Unload(void)
{
+ if (g_Settings.SelectionBGBrush)
+ DeleteObject(g_Settings.SelectionBGBrush);
+
+ for (int i = 0; i < SIZEOF(g_Settings.UserListFonts); i++)
+ if (g_Settings.UserListFonts[i])
+ DeleteObject(g_Settings.UserListFonts[i]);
+
delete g_Settings.Highlight;
db_set_w(NULL, CHAT_MODULE, "SplitterX", (WORD)g_Settings.iSplitterX);