fix crash in wxWindowGTK::GTKHandleUnrealize(), closes #14752

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2012-10-16 18:05:09 +00:00
parent a68fb3fc38
commit efc645e229

View File

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