mirror of
https://github.com/libretro/RetroArch
synced 2025-02-19 12:41:00 +00:00
(Database) Move msg_queue_clear/msg_queue_push to rdl free function
This commit is contained in:
parent
96387d5974
commit
990253ac7f
@ -80,8 +80,12 @@ void database_info_write_rdl_free(database_info_rdl_handle_t *dbl)
|
||||
{
|
||||
if (!dbl)
|
||||
return;
|
||||
|
||||
string_list_free(dbl->list);
|
||||
free(dbl);
|
||||
|
||||
msg_queue_clear(g_runloop.msg_queue);
|
||||
msg_queue_push(g_runloop.msg_queue, "Scanning of directory finished.\n", 1, 180);
|
||||
}
|
||||
|
||||
int database_info_write_rdl_iterate(database_info_rdl_handle_t *dbl)
|
||||
|
@ -531,9 +531,6 @@ static void rarch_main_data_rdl_iterate(void)
|
||||
#ifdef HAVE_LIBRETRODB
|
||||
if (!driver.menu->rdl->iterating)
|
||||
{
|
||||
msg_queue_clear(g_runloop.msg_queue);
|
||||
msg_queue_push(g_runloop.msg_queue, "Scanning of directory finished.\n", 1, 180);
|
||||
|
||||
database_info_write_rdl_free(driver.menu->rdl);
|
||||
driver.menu->rdl = NULL;
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user