summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/include
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/include')
-rw-r--r--plugins/TabSRMM/include/mim.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TabSRMM/include/mim.h b/plugins/TabSRMM/include/mim.h
index 9bee54ffbd..712831fec2 100644
--- a/plugins/TabSRMM/include/mim.h
+++ b/plugins/TabSRMM/include/mim.h
@@ -110,12 +110,12 @@ public:
}
~CMimAPI() {
+ if (m_haveBufferedPaint)
+ m_pfnBufferedPaintUninit();
if (m_hUxTheme != 0)
FreeLibrary(m_hUxTheme);
if (m_hDwmApi != 0)
FreeLibrary(m_hDwmApi);
- if (m_haveBufferedPaint)
- m_pfnBufferedPaintUninit();
if (m_hChatLogLock != INVALID_HANDLE_VALUE)
CloseHandle(m_hChatLogLock);