summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/themes.cpp
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/themes.cpp
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/themes.cpp')
-rw-r--r--plugins/TabSRMM/src/themes.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/themes.cpp b/plugins/TabSRMM/src/themes.cpp
index 44243d5717..c6499fc3a7 100644
--- a/plugins/TabSRMM/src/themes.cpp
+++ b/plugins/TabSRMM/src/themes.cpp
@@ -1209,9 +1209,11 @@ void CSkin::Unload()
::DestroyIcon(*(m_skinIcons[i].phIcon));
mir_free(m_skinIcons);
- M.getAeroState(); // refresh after unload
- ::FreeTabConfig();
- ::ReloadTabConfig();
+ if (!g_bShutdown) {
+ M.getAeroState(); // refresh after unload
+ ::FreeTabConfig();
+ ::ReloadTabConfig();
+ }
m_bAvatarBorderType = AVBORDER_NORMAL;
m_avatarBorderClr = ::GetSysColor(COLOR_3DDKSHADOW);