Fix memory leak.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user