Merge pull request #7975 from orbea/unload

Fix crashes when changing cores.
This commit is contained in:
Twinaphex 2019-01-11 04:54:53 +01:00 committed by GitHub
commit af48987eb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2020,9 +2020,6 @@ bool command_event(enum event_command cmd, void *data)
path_clear(RARCH_PATH_CORE);
rarch_ctl(RARCH_CTL_SYSTEM_INFO_FREE, NULL);
#endif
core_unload_game();
if (!rarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL))
core_unload();
#ifdef HAVE_DISCORD
if (discord_is_inited)
{