Commit 9bc4f8f5 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

control/hierarchical_media_list_view.c: Fix a media descriptor leak.

parent 89b604d4
...@@ -80,6 +80,7 @@ hierarch_media_list_view_children_at_index( libvlc_media_list_view_t * p_mlv, ...@@ -80,6 +80,7 @@ hierarch_media_list_view_children_at_index( libvlc_media_list_view_t * p_mlv,
p_md = libvlc_media_list_item_at_index( p_mlv->p_mlist, index, p_e ); p_md = libvlc_media_list_item_at_index( p_mlv->p_mlist, index, p_e );
if( !p_md ) return NULL; if( !p_md ) return NULL;
p_submlist = libvlc_media_descriptor_subitems( p_md, p_e ); p_submlist = libvlc_media_descriptor_subitems( p_md, p_e );
libvlc_media_descriptor_release( p_md );
if( !p_submlist ) return NULL; if( !p_submlist ) return NULL;
return libvlc_media_list_hierarchical_view( p_submlist, p_e ); return libvlc_media_list_hierarchical_view( p_submlist, p_e );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment