global_uninit_drivers() should come after main deinit.
Actually free video driver in global_uninit.
This commit is contained in:
parent
250a2b305d
commit
970c973540
7
driver.c
7
driver.c
|
@ -449,10 +449,13 @@ void global_init_drivers(void)
|
||||||
|
|
||||||
void global_uninit_drivers(void)
|
void global_uninit_drivers(void)
|
||||||
{
|
{
|
||||||
if (driver.video_data)
|
if (driver.video && driver.video_data)
|
||||||
|
{
|
||||||
|
driver.video->free(driver.video_data);
|
||||||
driver.video_data = NULL;
|
driver.video_data = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (driver.input_data)
|
if (driver.input && driver.input_data)
|
||||||
{
|
{
|
||||||
driver.input->free(driver.input_data);
|
driver.input->free(driver.input_data);
|
||||||
driver.input_data = NULL;
|
driver.input_data = NULL;
|
||||||
|
|
|
@ -283,10 +283,9 @@ returntype main_entry(signature())
|
||||||
while ((g_extern.is_paused && !g_extern.is_oneshot) ? rarch_main_idle_iterate() : rarch_main_iterate());
|
while ((g_extern.is_paused && !g_extern.is_oneshot) ? rarch_main_idle_iterate() : rarch_main_iterate());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
global_uninit_drivers();
|
|
||||||
|
|
||||||
rarch_main_deinit();
|
rarch_main_deinit();
|
||||||
rarch_deinit_msg_queue();
|
rarch_deinit_msg_queue();
|
||||||
|
global_uninit_drivers();
|
||||||
|
|
||||||
#ifdef PERF_TEST
|
#ifdef PERF_TEST
|
||||||
rarch_perf_log();
|
rarch_perf_log();
|
||||||
|
|
Loading…
Reference in New Issue