Fix dangling pointer. Likely cause for crashes; could be that mingw64 crash.

This commit is contained in:
Alcaro 2014-08-29 14:14:06 +02:00 committed by Higor Eurípedes
parent 8a9f747476
commit c89a538431

View File

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