]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/taskbarx11.cpp
derive wxSTC from wxTextAreaBase to provide wxTextCtrl-like methods (see #9114)
[wxWidgets.git] / src / unix / taskbarx11.cpp
index 55e11e8bdfb5c23cf308e97a2caf406da3aedc4a..ced3b5e059716e7060ce6ae4f6e17d0d384f2a75 100644 (file)
@@ -263,7 +263,11 @@ wxTaskBarIcon::wxTaskBarIcon() : m_iconWnd(NULL)
 wxTaskBarIcon::~wxTaskBarIcon()
 {
     if (m_iconWnd)
+    {
+        m_iconWnd->Disconnect(
+            wxEVT_DESTROY, wxObjectEventFunction(NULL), NULL, this);
         RemoveIcon();
+    }
 }
 
 bool wxTaskBarIcon::IsOk() const