Refactor deinit_rewind - rewind should never be deinited if

netplay is enabled (?)
This commit is contained in:
Twinaphex 2014-08-02 05:06:18 +02:00
parent 6422aa52d1
commit e7980b89ea

View File

@ -1531,6 +1531,11 @@ static void init_rewind(void)
static void deinit_rewind(void)
{
#ifdef HAVE_NETPLAY
if (g_extern.netplay)
return;
#endif
if (g_extern.state_manager)
state_manager_free(g_extern.state_manager);
g_extern.state_manager = NULL;
@ -3299,11 +3304,7 @@ void rarch_main_deinit(void)
if (g_extern.use_sram)
save_files();
#ifdef HAVE_NETPLAY
if (!g_extern.netplay)
#endif
deinit_rewind();
deinit_rewind();
deinit_cheats();
#ifdef HAVE_BSV_MOVIE