]> git.saurik.com Git - wxWidgets.git/commitdiff
fix crash in wxWindowGTK::GTKHandleUnrealize(), closes #14752
authorPaul Cornett <paulcor@bullseye.com>
Tue, 16 Oct 2012 18:05:09 +0000 (18:05 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Tue, 16 Oct 2012 18:05:09 +0000 (18:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/menu.cpp

index b04089376b12fbab8f93c0f676bcbc8bad29bb47..8e2bc9647abf91ecc791cff1b27edf3ca60e22b4 100644 (file)
@@ -70,6 +70,8 @@ wxMenuBar::~wxMenuBar()
         GtkWidget* widget = m_widget;
         m_focusWidget =
         m_widget = NULL;
+        g_signal_handlers_disconnect_matched(widget,
+            GSignalMatchType(G_SIGNAL_MATCH_DATA), 0, 0, NULL, NULL, this);
         g_object_unref(widget);
     }
 }