mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 16:39:43 +00:00
Simplify menu_list_new
This commit is contained in:
parent
225c6fac1b
commit
84b8a250a3
@ -191,12 +191,7 @@ menu_list_t *menu_list_new(void)
|
||||
return list;
|
||||
|
||||
error:
|
||||
if (list->menu_stack)
|
||||
free(list->menu_stack);
|
||||
list->menu_stack = NULL;
|
||||
if (list->selection_buf)
|
||||
free(list->selection_buf);
|
||||
list->selection_buf = NULL;
|
||||
menu_list_free(list);
|
||||
free(list);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user