Commit 5b324033 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

control/media_descriptor.c: Prevent an input_item memleak.

parent e809656e
......@@ -295,6 +295,9 @@ libvlc_media_descriptor_t * libvlc_media_descriptor_new(
p_md = libvlc_media_descriptor_new_from_input_item( p_instance,
p_input_item, p_e );
/* The p_input_item is retained in libvlc_media_descriptor_new_from_input_item */
vlc_gc_decref( p_input_item );
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