Get rid of one calloc call and replace it with malloc

This commit is contained in:
twinaphex 2017-08-13 06:14:54 +02:00
parent a0cbb1ee43
commit 6ec27a7e5d

View File

@ -7144,17 +7144,19 @@ static rarch_setting_t *menu_setting_new(void)
{
rarch_setting_t* list = NULL;
rarch_setting_info_t *list_info = (rarch_setting_info_t*)
calloc(1, sizeof(*list_info));
malloc(sizeof(*list_info));
if (!list_info)
return NULL;
list_info->index = 0;
list_info->size = 32;
list = menu_setting_new_internal(list_info);
list = menu_setting_new_internal(list_info);
menu_settings_info_list_free(list_info);
list_info = NULL;
list_info = NULL;
return list;
}