mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
(Menu) setting_data_get_mainmenu - cleanup
This commit is contained in:
parent
1daa317971
commit
7c4e08eed3
@ -1452,13 +1452,11 @@ rarch_setting_t *setting_data_get_mainmenu(bool regenerate)
|
||||
|
||||
if (list)
|
||||
{
|
||||
if (regenerate)
|
||||
{
|
||||
free(list);
|
||||
list = NULL;
|
||||
}
|
||||
else
|
||||
if (!regenerate)
|
||||
return list;
|
||||
|
||||
free(list);
|
||||
list = NULL;
|
||||
}
|
||||
|
||||
list = (rarch_setting_t*)malloc(sizeof(rarch_setting_t) * list_size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user