From: Paul Cornett Date: Sun, 11 May 2008 23:04:14 +0000 (+0000) Subject: disconnect handler in wxTaskBarIcon dtor, should have been part of previous commit X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b6819de8da101f1ec62f25648de5d2d132e02daf 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 --- 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