Put this here

This commit is contained in:
twinaphex 2017-05-28 19:00:54 +02:00
parent c2cb872b08
commit c7825e4708

View File

@ -29,6 +29,7 @@
#endif
#include "command.h"
#include "dynamic.h"
#include "msg_hash.h"
#include "audio/audio_driver.h"
@ -395,6 +396,15 @@ void driver_uninit(int flags)
core_info_deinit_list();
core_info_free_current_core();
#ifndef HAVE_DYNAMIC
if (frontend_driver_has_fork())
#endif
{
rarch_system_info_t *system = runloop_get_system_info();
libretro_free_system_info(&system->info);
memset(&system->info, 0, sizeof(struct retro_system_info));
}
#ifdef HAVE_MENU
if (flags & DRIVER_MENU_MASK)
menu_driver_ctl(RARCH_MENU_CTL_DEINIT, NULL);