Take out duplicate freeing of log_file

This commit is contained in:
twinaphex 2014-06-10 19:39:46 +02:00
parent 5ac449f564
commit 29d6856244
2 changed files with 1 additions and 4 deletions

View File

@ -257,10 +257,6 @@ void main_exit(args_type() args)
#if defined(HAVE_LOGGER) && !defined(ANDROID)
logger_shutdown();
#elif defined(HAVE_FILE_LOGGER)
if (g_extern.log_file)
fclose(g_extern.log_file);
g_extern.log_file = NULL;
#endif
if (driver.frontend_ctx && driver.frontend_ctx->deinit)

View File

@ -2798,6 +2798,7 @@ void rarch_main_clear_state(void)
if (g_extern.log_file)
fclose(g_extern.log_file);
g_extern.log_file = NULL;
memset(&g_extern, 0, sizeof(g_extern));