mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
(XMB) Fix xmb->menu_stack_old leak
This commit is contained in:
parent
a7ad10f884
commit
901ce8f8d4
@ -1583,8 +1583,15 @@ static void xmb_free(void *data)
|
||||
return;
|
||||
|
||||
if (xmb->menu_stack_old)
|
||||
{
|
||||
/* list nodes are owned by menu->menu_list->menu_stack */
|
||||
if (xmb->menu_stack_old->list)
|
||||
free(xmb->menu_stack_old->list);
|
||||
|
||||
free(xmb->menu_stack_old);
|
||||
}
|
||||
xmb->menu_stack_old = NULL;
|
||||
|
||||
if (xmb->selection_buf_old)
|
||||
file_list_free(xmb->selection_buf_old);
|
||||
xmb->selection_buf_old = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user