lib: media: fix item leak from libvlc_media_new_as_node
authorThomas Guillem <thomas@gllm.fr>
Fri, 10 Jun 2016 11:47:28 +0000 (13:47 +0200)
committerThomas Guillem <thomas@gllm.fr>
Fri, 10 Jun 2016 12:39:06 +0000 (14:39 +0200)
lib/media.c

index 9088369..0f7c61a 100644 (file)
@@ -481,6 +481,7 @@ libvlc_media_t * libvlc_media_new_as_node( libvlc_instance_t *p_instance,
     }
 
     p_md = libvlc_media_new_from_input_item( p_instance, p_input_item );
+    input_item_Release( p_input_item );
 
     p_subitems = media_get_subitems( p_md, true );
     if( p_subitems == NULL) {