mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 00:40:09 +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;
|
return list;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
if (list->menu_stack)
|
menu_list_free(list);
|
||||||
free(list->menu_stack);
|
|
||||||
list->menu_stack = NULL;
|
|
||||||
if (list->selection_buf)
|
|
||||||
free(list->selection_buf);
|
|
||||||
list->selection_buf = NULL;
|
|
||||||
free(list);
|
free(list);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user