From 3d52bdd8c6ff039f57fa4374520b78e6a77e3f45 Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Mon, 25 Aug 2008 03:03:54 +0000 Subject: [PATCH 1/1] Fix memory leak. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/carbon/menu.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } } -- 2.45.2