gst: gst_element_remove_pad() is transfer none for the pad
authorSebastian Dröge <sebastian@centricular.com>
Mon, 4 Dec 2017 16:08:39 +0000 (18:08 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 4 Dec 2017 16:10:23 +0000 (18:10 +0200)
commit16de48ae03651cd614c065175354e4f48f2947b1
tree7bfd4beb55e8a4859f1dd3513c937d72a5894c98
parent76b54099bd86c53ef2215b1334b1ae4960e68907
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.
gst/gstelement.c