From b6819de8da101f1ec62f25648de5d2d132e02daf Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sun, 11 May 2008 23:04:14 +0000 Subject: [PATCH] disconnect handler in wxTaskBarIcon dtor, should have been part of previous commit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/taskbarx11.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/unix/taskbarx11.cpp b/src/unix/taskbarx11.cpp index 55e11e8bdf..6c3af3359f 100644 --- a/src/unix/taskbarx11.cpp +++ b/src/unix/taskbarx11.cpp @@ -263,7 +263,10 @@ wxTaskBarIcon::wxTaskBarIcon() : m_iconWnd(NULL) wxTaskBarIcon::~wxTaskBarIcon() { if (m_iconWnd) + { + m_iconWnd->Disconnect(wxEVT_DESTROY, NULL, NULL, this); RemoveIcon(); + } } bool wxTaskBarIcon::IsOk() const -- 2.50.0