summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/controls.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/src/controls.cpp')
-rw-r--r--plugins/TabSRMM/src/controls.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/controls.cpp b/plugins/TabSRMM/src/controls.cpp
index e68961c72e..1cad737eb4 100644
--- a/plugins/TabSRMM/src/controls.cpp
+++ b/plugins/TabSRMM/src/controls.cpp
@@ -87,7 +87,7 @@ CMenuBar::CMenuBar(HWND hwndParent, const TContainerData *pContainer)
m_activeSubMenu = 0;
m_fTracking = false;
m_isContactMenu = m_isMainMenu = false;
- m_hevHook = HookEventParam(ME_LANGPACK_CHANGED, &::resetLP, (LPARAM)this);
+ HookEventParam(ME_LANGPACK_CHANGED, &::resetLP, (LPARAM)this);
::SetWindowLongPtr(m_hwndToolbar, GWLP_USERDATA, (UINT_PTR)this);
mir_subclassWindow(m_hwndToolbar, wndProc);
@@ -97,7 +97,6 @@ CMenuBar::~CMenuBar()
{
::SetWindowLongPtr(m_hwndToolbar, GWLP_USERDATA, 0);
::DestroyWindow(m_hwndToolbar);
- ::UnhookEvent(m_hevHook);
releaseHook();
m_MimIconRefCount--;
if (m_MimIconRefCount == 0) {