gluploadelement: fix leak of upload library object
authorMatthew Waters <matthew@centricular.com>
Wed, 5 Oct 2016 07:28:48 +0000 (18:28 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:23 +0000 (19:32 +0000)
commitc0cb6eacb56b4d0ef89e6a5e877aabf756d77b40
tree8eb17ed108a81b9f9853497f2fa13a63de819646
parent7ab50a8e8f0e6c29b186e8c6b715418fdfdea27b
gluploadelement: fix leak of upload library object

When only linking the element, the upload object will be created from
_transform_caps() but will never be unreffed as the only case is in _stop().

Add an unref if non-NULL to a new finalize handler for this case.
ext/gl/gstgluploadelement.c