ozone: fix memory leak

This commit is contained in:
natinusala 2019-01-14 19:49:56 +01:00
parent ea027c0b55
commit 0b4f6c1ce4

View File

@ -423,16 +423,7 @@ void ozone_init_horizontal_list(ozone_handle_t *ozone)
if (settings->bools.menu_content_show_playlists && !string_is_empty(info.path))
{
if (menu_displaylist_ctl(DISPLAYLIST_DATABASE_PLAYLISTS_HORIZONTAL, &info))
{
size_t i;
for (i = 0; i < ozone->horizontal_list->size; i++)
{
ozone_node_t *node = ozone_alloc_node();
file_list_set_userdata(ozone->horizontal_list, i, node);
}
menu_displaylist_process(&info);
}
}
menu_displaylist_info_free(&info);