mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 18:58:21 +00:00
(menu) menu_driver_list_insert - Try to free actiondata first before allocating
it
This commit is contained in:
parent
f474e10c75
commit
ab0a3dabf5
@ -239,6 +239,7 @@ void menu_driver_list_insert(file_list_t *list, const char *path,
|
|||||||
if (driver->list_insert)
|
if (driver->list_insert)
|
||||||
driver->list_insert(list, path, label, idx);
|
driver->list_insert(list, path, label, idx);
|
||||||
|
|
||||||
|
file_list_free_actiondata(list, idx);
|
||||||
list->list[idx].actiondata = (menu_file_list_cbs_t*)
|
list->list[idx].actiondata = (menu_file_list_cbs_t*)
|
||||||
calloc(1, sizeof(menu_file_list_cbs_t));
|
calloc(1, sizeof(menu_file_list_cbs_t));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user