(menu_driver.c) Fix leak

This commit is contained in:
Higor Eurípedes 2015-05-20 19:33:42 -03:00
parent d45b3474df
commit 80310d8df3

View File

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