(Menu) setting_data_get_mainmenu - cleanup

This commit is contained in:
twinaphex 2014-09-03 20:34:25 +02:00
parent 1daa317971
commit 7c4e08eed3

View File

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