[vlc-commits] lib: media: fix item leak from libvlc_media_new_as_node

Thomas Guillem git at videolan.org
Fri Jun 10 14:39:12 CEST 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jun 10 13:47:28 2016 +0200| [b33cc0bb2b25f02301309d70f9f1c36b71677a30] | committer: Thomas Guillem

lib: media: fix item leak from libvlc_media_new_as_node

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b33cc0bb2b25f02301309d70f9f1c36b71677a30
---

 lib/media.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/media.c b/lib/media.c
index 9088369..0f7c61a 100644
--- a/lib/media.c
+++ b/lib/media.c
@@ -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) {



More information about the vlc-commits mailing list