mirror of
https://github.com/libretro/RetroArch
synced 2025-02-05 06:40:07 +00:00
(xmb) deep list copy - Use malloc instead of calloc
This commit is contained in:
parent
0afb629c81
commit
56733c6f18
@ -3804,14 +3804,14 @@ static void xmb_list_deep_copy(const file_list_t *src, file_list_t *dst)
|
||||
|
||||
if (src_udata)
|
||||
{
|
||||
void *data = calloc(1, sizeof(xmb_node_t));
|
||||
void *data = malloc(sizeof(xmb_node_t));
|
||||
memcpy(data, src_udata, sizeof(xmb_node_t));
|
||||
file_list_set_userdata(dst, i, data);
|
||||
}
|
||||
|
||||
if (src_adata)
|
||||
{
|
||||
void *data = calloc(1, sizeof(menu_file_list_cbs_t));
|
||||
void *data = malloc(sizeof(menu_file_list_cbs_t));
|
||||
memcpy(data, src_adata, sizeof(menu_file_list_cbs_t));
|
||||
file_list_set_actiondata(dst, i, data);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user