mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 16:39:43 +00:00
Fix dangling pointer. Likely cause for crashes; could be that mingw64 crash.
This commit is contained in:
parent
8a9f747476
commit
c89a538431
@ -2254,5 +2254,6 @@ rarch_setting_t *setting_data_get_list(void)
|
||||
APPEND(terminator);
|
||||
|
||||
/* flatten this array to save ourselves some kilobytes */
|
||||
return (rarch_setting_t*)realloc(list, sizeof(rarch_setting_t) * index);
|
||||
list=realloc(list, sizeof(rarch_setting_t) * index);
|
||||
return (rarch_setting_t*)list;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user