mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-26 21:36:26 +00:00
xmb: Fix memory leak due to horizontal list not being freed properly
This commit is contained in:
parent
aae721a9d0
commit
420d8a5fb2
@ -1423,7 +1423,7 @@ static void xmb_refresh_horizontal_list(xmb_handle_t *xmb)
|
||||
|
||||
xmb_context_destroy_horizontal_list(xmb);
|
||||
if (xmb->horizontal_list)
|
||||
free(xmb->horizontal_list);
|
||||
file_list_free(xmb->horizontal_list);
|
||||
xmb->horizontal_list = NULL;
|
||||
|
||||
menu_driver_ctl(RARCH_MENU_CTL_SET_PREVENT_POPULATE, NULL);
|
||||
@ -2586,7 +2586,7 @@ error:
|
||||
free(xmb->selection_buf_old);
|
||||
xmb->selection_buf_old = NULL;
|
||||
if (xmb->horizontal_list)
|
||||
free(xmb->horizontal_list);
|
||||
file_list_free(xmb->horizontal_list);
|
||||
xmb->horizontal_list = NULL;
|
||||
}
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user