(dynamic.c) cleanups

This commit is contained in:
twinaphex 2015-06-25 14:13:51 +02:00
parent c8eca5b06a
commit 7bf6d1e5bb
2 changed files with 7 additions and 7 deletions

View File

@ -496,11 +496,7 @@ void init_libretro_sym(enum rarch_core_type type)
* Every OS that this program supports should pass this. */
rarch_assert(sizeof(void*) == sizeof(void (*)(void)));
load_symbols(type);
//move this to init_core, will need to be tested
//pretro_set_environment(rarch_environment_cb);
}
/**
@ -524,7 +520,7 @@ void uninit_libretro_sym(void)
rarch_system_info_free();
driver->camera_active = false;
driver->camera_active = false;
driver->location_active = false;
/* Performance counters no longer valid. */

View File

@ -343,8 +343,12 @@ void rarch_system_info_free(void)
}
/* No longer valid. */
free(g_system->special);
free(g_system->ports);
if (g_system->special)
free(g_system->special);
g_system->special = NULL;
if (g_system->ports)
free(g_system->ports);
g_system->ports = NULL;
free(g_system);
g_system = NULL;