Don't try to uninstall handlers for active core

Should stop the Gambatte/Bsnes SGB core from crashing on exit.
This commit is contained in:
Ilari Liusvaara 2016-01-01 08:01:16 +02:00
parent 05ad5b9da1
commit 62ee8b0039

View file

@ -944,7 +944,6 @@ void main_loop(struct loaded_rom& rom, struct moviefile& initial, bool load_has_
out:
core.jukebox->unset_update();
core.mdumper->end_dumps();
core_core::uninstall_all_handlers();
core.commentary->kill();
core.iqueue->system_thread_available = false;
//Kill some things to avoid crashes.
@ -954,6 +953,8 @@ out:
//Close the ROM.
load_null_rom();
do_load_rom();
//Uninstall the handlers. Don't do this with ROM loaded.
core_core::uninstall_all_handlers();
}
void set_stop_at_frame(uint64_t frame)