Skip to content

Commit

Permalink
Put this back here
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed May 28, 2017
1 parent ffe0987 commit 30c5a28
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 0 additions & 9 deletions driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,15 +396,6 @@ 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);
Expand Down
9 changes: 9 additions & 0 deletions menu/menu_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1824,6 +1824,15 @@ bool menu_driver_ctl(enum rarch_menu_ctl_state state, void *data)
free(menu_userdata);
menu_userdata = NULL;

#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));
}

if (menu_display_msg_queue)
msg_queue_free(menu_display_msg_queue);

Expand Down

0 comments on commit 30c5a28

Please sign in to comment.