mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +00:00
Rewrite menu_driver_list_free
This commit is contained in:
parent
c039e4c6ab
commit
543e680961
@ -309,13 +309,17 @@ void menu_driver_list_insert(file_list_t *list, const char *path,
|
||||
|
||||
void menu_driver_list_free(file_list_t *list, size_t idx, size_t list_size)
|
||||
{
|
||||
const menu_ctx_driver_t *driver = menu_driver_ctx;
|
||||
if (menu_driver_ctx)
|
||||
{
|
||||
if (menu_driver_ctx->list_free)
|
||||
menu_driver_ctx->list_free(list, idx, list_size);
|
||||
}
|
||||
|
||||
if (driver->list_free)
|
||||
driver->list_free(list, idx, list_size);
|
||||
|
||||
file_list_free_userdata (list, idx);
|
||||
file_list_free_actiondata(list, idx);
|
||||
if (list)
|
||||
{
|
||||
file_list_free_userdata (list, idx);
|
||||
file_list_free_actiondata(list, idx);
|
||||
}
|
||||
}
|
||||
|
||||
static bool menu_driver_list_set_selection(void *data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user