summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-14 14:57:37 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-14 14:57:37 +0000
commit3d64cefb8851fcf43b9c6109abdddaf71e340a71 (patch)
tree570472c4a55ca462fe9e5049a91702859eeb0fed /plugins/TopToolBar
parent1d680ee8c0f9b0c2a421a778cb50152581dc2873 (diff)
- various leaks
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@965 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar')
-rw-r--r--plugins/TopToolBar/toolbarwnd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/TopToolBar/toolbarwnd.cpp b/plugins/TopToolBar/toolbarwnd.cpp
index d082464b4f..e3f19f693b 100644
--- a/plugins/TopToolBar/toolbarwnd.cpp
+++ b/plugins/TopToolBar/toolbarwnd.cpp
@@ -255,6 +255,7 @@ LRESULT CALLBACK TopToolBarProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
INT_PTR OnEventFire(WPARAM wParam, LPARAM lParam)
{
CallService(MS_SYSTEM_REMOVEWAIT, wParam, 0);
+ CloseHandle((HANDLE)wParam);
HWND parent = (HWND)CallService(MS_CLUI_GETHWND, 0, 0);
if (parent == NULL) // no clist, no buttons