Fix some leaks

This commit is contained in:
twinaphex 2017-09-28 03:16:00 +02:00
parent 8b5f8d8c64
commit 59e442419e

View File

@ -1617,6 +1617,8 @@ static int menu_displaylist_parse_playlist(menu_displaylist_info_t *info,
snprintf(tmp, path_size, " (%s)", core_name);
strlcat(fill_buf, tmp, path_size);
free(tmp);
}
}
@ -4157,7 +4159,13 @@ bool menu_displaylist_push(menu_displaylist_ctx_entry_t *entry)
goto error;
if (menu_displaylist_push_internal(label, entry, &info))
{
if (info.path && !string_is_empty(info.path))
free(info.path);
if (info.label && !string_is_empty(info.label))
free(info.label);
return menu_displaylist_process(&info);
}
cbs = menu_entries_get_last_stack_actiondata();