Commit 5804ebe1 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

control/media_list.c: Don't forget to increase the md refcount where needed.

parent 4a2b660c
......@@ -316,7 +316,9 @@ libvlc_media_list_item_at_index( libvlc_media_list_t * p_mlist,
int index,
libvlc_exception_t * p_e )
{
return ARRAY_VAL( p_mlist->items, index );
libvlc_media_descriptor_t * p_md = ARRAY_VAL( p_mlist->items, index );
libvlc_media_descriptor_retain( p_md );
return p_md;
}
/**************************************************************************
......
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