mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-10 13:02:27 +00:00
(menu_driver.c) Fix leak
This commit is contained in:
parent
d45b3474df
commit
80310d8df3
@ -217,9 +217,13 @@ void menu_driver_list_delete(file_list_t *list, size_t i, size_t list_size)
|
||||
void menu_driver_list_clear(file_list_t *list)
|
||||
{
|
||||
const menu_ctx_driver_t *driver = menu_ctx_driver_get_ptr();
|
||||
size_t i;
|
||||
|
||||
if (driver->list_clear)
|
||||
driver->list_clear(list);
|
||||
|
||||
for (i = 0; i < list->size; ++i)
|
||||
menu_driver_list_delete_common(list, i, list->size);
|
||||
}
|
||||
|
||||
void menu_driver_context_destroy(void)
|
||||
|
Loading…
Reference in New Issue
Block a user