]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/menu.cpp
porting dcscreen blit from 2.8
[wxWidgets.git] / src / osx / carbon / menu.cpp
index 5f6a7a75d05c6b72d740275a10eb68416de74653..bb6b08ea2e5a94137cc4af6ebe42b05388f08e72 100644 (file)
@@ -217,7 +217,7 @@ public :
                 MenuRef submenu = pItem->GetSubMenu()->GetHMenu();
                 SetMenuItemHierarchicalMenu(m_osxMenu, index, submenu);
                 // carbon is using the title of the submenu, eg in the menubar
-                SetMenuTitleWithCFString(submenu, wxCFStringRef(wxStripMenuCodes(pItem->GetLabel())));
+                SetMenuTitleWithCFString(submenu, wxCFStringRef(pItem->GetItemLabelText()));
             }
             else
             {
@@ -244,8 +244,6 @@ public :
                 DeleteMenuItem(m_osxMenu , i);
                 impl->AttachToParent( NULL, 0 );
             }
-            
-            delete entry;
         }
     }