v4l2: allocator: Fix unref log/trace on memory release

Use gst_object_unref() instead of g_object_unref() in
gst_v4l2_allocator_release(), so refcounting log and
tracer get to know about this unref.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6551>
This commit is contained in:
Philipp Zabel 2024-04-05 14:21:38 +02:00 committed by GStreamer Marge Bot
parent eedfb5e6d7
commit 6f9872cb56

View file

@ -374,7 +374,7 @@ gst_v4l2_allocator_release (GstV4l2Allocator * allocator, GstV4l2Memory * mem)
} }
/* Keep last, allocator may be freed after this call */ /* Keep last, allocator may be freed after this call */
g_object_unref (allocator); gst_object_unref (allocator);
} }
static void static void