mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
input_list_element_constructor - turn it into malloc
This commit is contained in:
parent
73199d5df3
commit
e0c442c99a
@ -33620,12 +33620,14 @@ static void mylist_create(my_list **list_p, int initial_capacity,
|
||||
|
||||
static void *input_list_element_constructor(void)
|
||||
{
|
||||
void *ptr = calloc(1, sizeof(input_list_element));
|
||||
void *ptr = malloc(sizeof(input_list_element));
|
||||
input_list_element *element = (input_list_element*)ptr;
|
||||
|
||||
element->port = 0;
|
||||
element->device = 0;
|
||||
element->index = 0;
|
||||
element->state = (int16_t*)calloc(256, sizeof(int16_t));
|
||||
element->state_size = 256;
|
||||
element->state = (int16_t*)calloc(
|
||||
element->state_size, sizeof(int16_t));
|
||||
|
||||
return ptr;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user