summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/tabctrl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/src/tabctrl.cpp')
-rw-r--r--plugins/TabSRMM/src/tabctrl.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/TabSRMM/src/tabctrl.cpp b/plugins/TabSRMM/src/tabctrl.cpp
index 4d8bd97029..b82f1c9b0e 100644
--- a/plugins/TabSRMM/src/tabctrl.cpp
+++ b/plugins/TabSRMM/src/tabctrl.cpp
@@ -1412,12 +1412,10 @@ void TSAPI FreeTabConfig()
if (PluginConfig.tabConfig.m_hMenuFont)
DeleteObject(PluginConfig.tabConfig.m_hMenuFont);
- for (int i=0; i < 4; i++) {
- if (PluginConfig.tabConfig.m_brushes[i]) {
+ for (int i=0; i < SIZEOF(PluginConfig.tabConfig.m_brushes); i++)
+ if (PluginConfig.tabConfig.m_brushes[i])
DeleteObject(PluginConfig.tabConfig.m_brushes[i]);
- PluginConfig.tabConfig.m_brushes[i] = 0;
- }
- }
+
ZeroMemory(&PluginConfig.tabConfig, sizeof(myTabCtrl));
}