From ce13ca1a6d15e9141da96788036a558927ddd865 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/branches/WX_2_8_BRANCH@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 047c92edcd..9ef02f3ed5 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