mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-15 06:58:34 +00:00
Take out duplicate freeing of log_file
This commit is contained in:
parent
5ac449f564
commit
29d6856244
@ -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)
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user