]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/menu.cpp
fix crash in wxWindowGTK::GTKHandleUnrealize(), closes #14752
[wxWidgets.git] / 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);
     }
 }