Rewrite menu_driver_list_free

This commit is contained in:
twinaphex 2016-02-04 20:15:34 +01:00
parent c039e4c6ab
commit 543e680961

View File

@ -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)