va: allocator: user gst_clear_object() for _buffer_surface_unref()
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 30 Sep 2020 13:54:18 +0000 (15:54 +0200)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 4 Oct 2020 18:42:51 +0000 (18:42 +0000)
commitd6f9cfc1595befd5de58ebe8d86da7d75f3a2ec1
tree1144b550a2e15910ea5ef88fcf1a2aee0c91ff4f
parent10b3250175d6a7841d65bcf84a6f8815820bf41a
va: allocator: user gst_clear_object() for _buffer_surface_unref()

Event if this function is only used by gst_va_dmabuf_memories_setup(), it might
get reused later by GstVaDmabufAllocator's functions. This change makes the
function less fragile.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1626>
sys/va/gstvaallocator.c