(ui_cocoa.m) Cleanups

This commit is contained in:
twinaphex 2016-06-04 18:09:40 +02:00
parent 8e9bb03301
commit 242e3d6a9e
1 changed files with 11 additions and 11 deletions

View File

@ -37,7 +37,7 @@
static id apple_platform; static id apple_platform;
void apple_rarch_exited(void) static void app_terminate(void)
{ {
[[NSApplication sharedApplication] terminate:nil]; [[NSApplication sharedApplication] terminate:nil];
} }
@ -198,7 +198,7 @@ static char** waiting_argv;
} }
} }
if (rarch_main(waiting_argc, waiting_argv, NULL)) if (rarch_main(waiting_argc, waiting_argv, NULL))
apple_rarch_exited(); app_terminate();
waiting_argc = 0; waiting_argc = 0;
@ -555,7 +555,7 @@ static void ui_companion_cocoa_deinit(void *data)
{ {
ui_companion_cocoa_t *handle = (ui_companion_cocoa_t*)data; ui_companion_cocoa_t *handle = (ui_companion_cocoa_t*)data;
apple_rarch_exited(); app_terminate();
if (handle) if (handle)
free(handle); free(handle);