mirror of
https://code.videolan.org/videolan/vlc
synced 2024-08-27 04:21:53 +02:00
control/media_descriptor.c: Prevent an input_item memleak.
This commit is contained in:
parent
e809656e44
commit
5b324033c2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user