Commit 403ca925 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

control/media_descriptor.c: Make sure not to retain a NULL object.

parent 904e5739
...@@ -445,7 +445,7 @@ libvlc_media_list_t * ...@@ -445,7 +445,7 @@ libvlc_media_list_t *
libvlc_media_descriptor_subitems( libvlc_media_descriptor_t * p_md, libvlc_media_descriptor_subitems( libvlc_media_descriptor_t * p_md,
libvlc_exception_t * p_e ) libvlc_exception_t * p_e )
{ {
libvlc_media_list_retain( p_md->p_subitems ); if( p_md->p_subitems )
libvlc_media_list_retain( p_md->p_subitems );
return p_md->p_subitems; return p_md->p_subitems;
} }
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