Only call rarch_main_deinit if main has been initied.

This commit is contained in:
Themaister 2014-01-03 14:39:46 +01:00
parent 998aac0765
commit 81fc0f621a

View File

@ -295,7 +295,8 @@ void main_exit(args_type() args)
}
#endif
rarch_main_deinit();
if (g_extern.main_is_init)
rarch_main_deinit();
rarch_deinit_msg_queue();
global_uninit_drivers();