mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +00:00
gst: gst_element_remove_pad() is transfer none for the pad
While the refcount of the pad is decreased, it's the refcount that is owned by the parent (i.e. the element) and not the one passed in by the caller. Fixes a memory leak in bindings.
This commit is contained in:
parent
76b54099bd
commit
16de48ae03
1 changed files with 1 additions and 1 deletions
|
@ -751,7 +751,7 @@ no_direction:
|
|||
/**
|
||||
* gst_element_remove_pad:
|
||||
* @element: a #GstElement to remove pad from.
|
||||
* @pad: (transfer full): the #GstPad to remove from the element.
|
||||
* @pad: (transfer none): the #GstPad to remove from the element.
|
||||
*
|
||||
* Removes @pad from @element. @pad will be destroyed if it has not been
|
||||
* referenced elsewhere using gst_object_unparent().
|
||||
|
|
Loading…
Reference in a new issue