Commit 14ddd406 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

hierarchical_media_list_view.c: Fix a mlist mem leak.

parent 9bc4f8f5
......@@ -77,12 +77,16 @@ hierarch_media_list_view_children_at_index( libvlc_media_list_view_t * p_mlv,
{
libvlc_media_descriptor_t * p_md;
libvlc_media_list_t * p_submlist;
libvlc_media_list_view_t * p_ret;
p_md = libvlc_media_list_item_at_index( p_mlv->p_mlist, index, p_e );
if( !p_md ) return NULL;
p_submlist = libvlc_media_descriptor_subitems( p_md, p_e );
libvlc_media_descriptor_release( p_md );
if( !p_submlist ) return NULL;
return libvlc_media_list_hierarchical_view( p_submlist, p_e );
p_ret = libvlc_media_list_hierarchical_view( p_submlist, p_e );
libvlc_media_list_release( p_submlist );
return p_ret;
}
/**************************************************************************
......
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