mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(XMB) xmb_list_delete - use file_list_free_userdata
This commit is contained in:
parent
c86c40c1cd
commit
2b1fe2de5d
@ -1915,12 +1915,7 @@ static void xmb_list_insert(file_list_t *list,
|
||||
static void xmb_list_delete(file_list_t *list,
|
||||
size_t idx, size_t list_size)
|
||||
{
|
||||
if (!list)
|
||||
return;
|
||||
|
||||
if (list->list[idx].userdata)
|
||||
free(list->list[idx].userdata);
|
||||
list->list[idx].userdata = NULL;
|
||||
file_list_free_userdata(list, idx);
|
||||
}
|
||||
|
||||
static void xmb_list_cache(menu_list_type_t type, unsigned action)
|
||||
|
Loading…
x
Reference in New Issue
Block a user