From 2bbcdb330bbf4d3bbd636f7014ee447c9be95495 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 11 Jul 2012 21:12:00 +0000 Subject: fix for a TTB to remove buttons of the dynamically unloaded plugins git-svn-id: http://svn.miranda-ng.org/main/trunk@911 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TopToolBar/topbutton.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/TopToolBar/topbutton.cpp') diff --git a/plugins/TopToolBar/topbutton.cpp b/plugins/TopToolBar/topbutton.cpp index 762b784934..34a6c4d5df 100644 --- a/plugins/TopToolBar/topbutton.cpp +++ b/plugins/TopToolBar/topbutton.cpp @@ -7,6 +7,9 @@ static int maxid = 10000; TopButtonInt::~TopButtonInt() { + if (hwnd) + DestroyWindow(hwnd); + if (dwFlags & TTBBF_ISLBUTTON) { mir_free(ptszProgram); } -- cgit v1.2.3