fix leak introduced by r53753
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1216,7 +1216,8 @@ wxMenuItem *wxMenu::DoRemove(wxMenuItem *item)
|
||||
}
|
||||
|
||||
gtk_menu_item_set_submenu(GTK_MENU_ITEM(mitem), NULL);
|
||||
gtk_container_remove(GTK_CONTAINER(m_menu), mitem);
|
||||
gtk_widget_destroy(mitem);
|
||||
item->SetMenuItem(NULL);
|
||||
|
||||
return item;
|
||||
}
|
||||
|
Reference in New Issue
Block a user