mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-25 08:05:35 +00:00
Static analysis fix: leaking Objective-C object.
This commit is contained in:
parent
84b919a2a7
commit
a25bd63cc5
|
@ -159,13 +159,19 @@ CreateApplicationMenus(void)
|
|||
NSMenu *windowMenu;
|
||||
NSMenu *viewMenu;
|
||||
NSMenuItem *menuItem;
|
||||
NSMenu *mainMenu;
|
||||
|
||||
if (NSApp == nil) {
|
||||
return;
|
||||
}
|
||||
|
||||
mainMenu = [[NSMenu alloc] init];
|
||||
|
||||
/* Create the main menu bar */
|
||||
[NSApp setMainMenu:[[NSMenu alloc] init]];
|
||||
[NSApp setMainMenu:mainMenu];
|
||||
|
||||
[mainMenu release]; /* we're done with it, let NSApp own it. */
|
||||
mainMenu = nil;
|
||||
|
||||
/* Create the application menu */
|
||||
appName = GetApplicationName();
|
||||
|
|
Loading…
Reference in a new issue