From: Kevin Ollivier Date: Mon, 25 Aug 2008 03:03:54 +0000 (+0000) Subject: Fix memory leak. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3d52bdd8c6ff039f57fa4374520b78e6a77e3f45?ds=inline Fix memory leak. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/carbon/menu.cpp b/src/osx/carbon/menu.cpp index 5505797e2d..8d1277c7f7 100644 --- a/src/osx/carbon/menu.cpp +++ b/src/osx/carbon/menu.cpp @@ -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; } }