From: Paul Cornett Date: Mon, 11 Feb 2008 17:39:06 +0000 (+0000) Subject: fix for glib critical errors when closing an mdi child X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f03789294fa0ff17144083c34704ea0ed434ee30 fix for glib critical errors when closing an mdi child git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index 6f385bf71f..f7b037efd4 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -989,12 +989,13 @@ wxMenu::~wxMenu() { // see wxMenu::Init g_object_unref(m_menu); - g_object_unref( m_accel ); // if the menu is inserted in another menu at this time, there was // one more reference to it: if ( m_owner ) gtk_widget_destroy( m_menu ); + + g_object_unref(m_accel); } }