This commit is contained in:
twinaphex 2016-01-08 22:26:13 +01:00
parent 2fc957d369
commit ee01fff66f

View File

@ -973,11 +973,21 @@ static void xmb_context_destroy_horizontal_list(xmb_handle_t *xmb)
for (i = 0; i < list_size; i++)
{
const char *path = NULL;
xmb_node_t *node = xmb_get_userdata_from_horizontal_list(xmb, i);
if (!node)
continue;
file_list_get_at_offset(xmb->horizontal_list, i,
&path, NULL, NULL, NULL);
if (!path)
continue;
if (!strstr(path, ".lpl"))
continue;
menu_display_texture_unload((uintptr_t*)&node->icon);
menu_display_texture_unload((uintptr_t*)&node->content_icon);
}