]> git.saurik.com Git - wxWidgets.git/commitdiff
[ 1721029 ] [GTK] memory leak in wxMenu
authorRobert Roebling <robert@roebling.de>
Tue, 22 May 2007 07:48:37 +0000 (07:48 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 22 May 2007 07:48:37 +0000 (07:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/menu.cpp

index 533aa55cf6595ead68b09def1547ba870e622ee8..bd901c5000d1da0ccf15b166bd37a9bec7f514c8 100644 (file)
@@ -1018,6 +1018,8 @@ wxMenu::~wxMenu()
    {
        // see wxMenu::Init
        gtk_widget_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 )