don't clear m_items before deleting m_menu (partial backport of r49263)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2008-01-24 18:12:55 +00:00
parent 0913baedc3
commit 9bcce52d3f
2 changed files with 0 additions and 4 deletions

View File

@@ -470,8 +470,6 @@ void wxMenuBase::Init(long style)
wxMenuBase::~wxMenuBase()
{
WX_CLEAR_LIST(wxMenuItemList, m_items);
// Actually, in GTK, the submenus have to get deleted first.
}
// ----------------------------------------------------------------------------

View File

@@ -1070,8 +1070,6 @@ void wxMenu::Init()
wxMenu::~wxMenu()
{
WX_CLEAR_LIST(wxMenuItemList, m_items);
if ( GTK_IS_WIDGET( m_menu ))
{
// see wxMenu::Init