summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/topbutton.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-11 21:12:00 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-11 21:12:00 +0000
commit2bbcdb330bbf4d3bbd636f7014ee447c9be95495 (patch)
tree7b1deacf6b281d03bcfdfdf671fe4b9d0498a0d2 /plugins/TopToolBar/topbutton.cpp
parentc67de31a8ce0b1a43b11662674ac0b64d14812d4 (diff)
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
Diffstat (limited to 'plugins/TopToolBar/topbutton.cpp')
-rw-r--r--plugins/TopToolBar/topbutton.cpp3
1 files changed, 3 insertions, 0 deletions
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);
}