gst: Fix floating reference inconsistencies in error cases
authorVineeth TM <vineeth.tm@samsung.com>
Fri, 10 Jul 2015 06:36:59 +0000 (15:36 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 17 May 2017 07:40:37 +0000 (10:40 +0300)
commit7c4d3a6c52a86acb022ee7201b1cd0dccb1b8c55
tree1b368a46999cf33aecd6bbac7bcd37d08ba81f68
parenteafaefe9da761d5485f5e659ab0b00028297fad5
gst: Fix floating reference inconsistencies in error cases

If a function takes a floating reference and sinks it, it should also do
that in error cases. I.e. call ref_sink() followed by unref().

Otherwise the reference counting behaviour of the function will be
different between the good and the error case, and simply inconsistent.

https://bugzilla.gnome.org/show_bug.cgi?id=747990
gst/gstbin.c
gst/gstelement.c
gst/gstobject.c