mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +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,
|
static void xmb_list_delete(file_list_t *list,
|
||||||
size_t idx, size_t list_size)
|
size_t idx, size_t list_size)
|
||||||
{
|
{
|
||||||
if (!list)
|
file_list_free_userdata(list, idx);
|
||||||
return;
|
|
||||||
|
|
||||||
if (list->list[idx].userdata)
|
|
||||||
free(list->list[idx].userdata);
|
|
||||||
list->list[idx].userdata = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void xmb_list_cache(menu_list_type_t type, unsigned action)
|
static void xmb_list_cache(menu_list_type_t type, unsigned action)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user