deinit_msg_queue becomes static function - clean it up in rarch_main_state_free

This commit is contained in:
twinaphex 2014-09-30 21:29:28 +02:00
parent 1a94f14e50
commit f273b34f73
3 changed files with 2 additions and 5 deletions

View File

@ -104,8 +104,6 @@ void main_exit(args_type() args)
rarch_main_deinit();
}
rarch_deinit_msg_queue();
rarch_perf_log();
#if defined(HAVE_LOGGER) && !defined(ANDROID)

View File

@ -806,7 +806,6 @@ void rarch_main_command(unsigned action);
bool rarch_main_iterate(void);
void rarch_main_deinit(void);
void rarch_render_cached_frame(void);
void rarch_deinit_msg_queue(void);
void rarch_check_block_hotkey(bool pressed);
bool rarch_check_fullscreen(bool pressed);
void rarch_disk_control_set_eject(bool state, bool log);

View File

@ -1255,7 +1255,7 @@ static void init_msg_queue(void)
rarch_assert(g_extern.msg_queue = msg_queue_new(8));
}
void rarch_deinit_msg_queue(void)
static void deinit_msg_queue(void)
{
if (g_extern.msg_queue)
msg_queue_free(g_extern.msg_queue);
@ -2568,11 +2568,11 @@ void rarch_main_state_new(void)
void rarch_main_state_free(void)
{
deinit_msg_queue();
deinit_log_file();
main_clear_state(false);
rarch_deinit_msg_queue();
}
#ifdef HAVE_ZLIB