mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-20 18:00:57 +00:00
(iOS) Prevent crash when selecting 'Quit RetroArch' in menu
This commit is contained in:
parent
0311480bc4
commit
76240aa322
@ -2574,9 +2574,7 @@ static void main_clear_state_extern(void)
|
||||
deinit_subsystem_fullpaths();
|
||||
rarch_deinit_recording();
|
||||
|
||||
if (g_extern.core_info)
|
||||
core_info_list_free(g_extern.core_info);
|
||||
g_extern.core_info = NULL;
|
||||
|
||||
|
||||
deinit_log_file();
|
||||
history_playlist_free();
|
||||
@ -3191,6 +3189,9 @@ void rarch_main_command(unsigned cmd)
|
||||
history_playlist_free();
|
||||
break;
|
||||
case RARCH_CMD_CORE_INFO_INIT:
|
||||
if (g_extern.core_info)
|
||||
core_info_list_free(g_extern.core_info);
|
||||
g_extern.core_info = NULL;
|
||||
if (*g_settings.libretro_directory &&
|
||||
!g_extern.core_info)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user