Skip to content
Snippets Groups Projects
Commit 5804ebe1 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont
Browse files

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

parent 4a2b660c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
/**************************************************************************
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment