mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 10:10:57 +00:00
ozone: fix memory leak
This commit is contained in:
parent
ea027c0b55
commit
0b4f6c1ce4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user