object: add gst_clear_object()
authorNiels De Graef <nielsdegraef@gmail.com>
Thu, 8 Feb 2018 16:31:15 +0000 (17:31 +0100)
committerSebastian Dröge <slomo@coaxion.net>
Mon, 5 Nov 2018 11:06:30 +0000 (11:06 +0000)
commitc5793f82d3386f0d5f5deeb1ba667e55b241f4da
tree78207bcdae79a3080bb65463577d0dd9a0fec51f
parente261c9534d46bb9e2b226f6dee6ce8105aca6b46
object: add gst_clear_object()

This is based on g_clear_object(). Basically, you can use this instead
of using g_object_unref (which needs to be preceded by a NULL-check).

Fixes #275
gst/gstobject.c
gst/gstobject.h