(XMB) Fix xmb->menu_stack_old leak

This commit is contained in:
Higor Eurípedes 2015-06-13 14:37:58 -03:00
parent a7ad10f884
commit 901ce8f8d4

View File

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