(menu) menu_driver_list_insert - Try to free actiondata first before allocating

it
This commit is contained in:
twinaphex 2015-06-12 04:05:42 +02:00
parent f474e10c75
commit ab0a3dabf5

View File

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