mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 02:43:03 +00:00
(menu_list.c) Fix leak
This commit is contained in:
parent
12721bc660
commit
15d8570e5b
@ -201,6 +201,8 @@ static void menu_free_list(menu_handle_t *menu)
|
||||
return;
|
||||
|
||||
settings_list_free(menu->list_settings);
|
||||
menu_list_free(menu->menu_list);
|
||||
menu->menu_list = NULL;
|
||||
menu->list_settings = NULL;
|
||||
}
|
||||
|
||||
|
@ -172,6 +172,7 @@ void menu_list_free(menu_list_t *menu_list)
|
||||
|
||||
menu_list_destroy(menu_list->menu_stack);
|
||||
menu_list_destroy(menu_list->selection_buf);
|
||||
free(menu_list);
|
||||
}
|
||||
|
||||
menu_list_t *menu_list_new(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user