]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix memory leak.
authorKevin Ollivier <kevino@theolliviers.com>
Mon, 25 Aug 2008 03:03:54 +0000 (03:03 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Mon, 25 Aug 2008 03:03:54 +0000 (03:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/menu.cpp

index 5505797e2d996db413569c5f48091331d497f9e1..8d1277c7f7239d0b558d0b932ed8a352e9bbac41 100644 (file)
@@ -887,6 +887,8 @@ void wxMenuBar::MacInstallMenuBar()
             SetMenuItemCommandID( GetMenuHandle( kwxMacAppleMenuId ) , 1 , kHICommandAbout ) ;
             SetMenuItemRefCon(GetMenuHandle( kwxMacAppleMenuId ) , 1 , (URefCon)aboutMenuItem ) ;
             UMASetMenuItemShortcut( GetMenuHandle( kwxMacAppleMenuId ) , 1 , entry ) ;
+            
+            delete entry;
         }
     }