From: Paul Cornett Date: Tue, 16 Oct 2012 18:05:09 +0000 (+0000) Subject: fix crash in wxWindowGTK::GTKHandleUnrealize(), closes #14752 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/efc645e22970b6b39bdfb5307cb8c3874096bf17 fix crash in wxWindowGTK::GTKHandleUnrealize(), closes #14752 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index b04089376b..8e2bc9647a 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -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); } }