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/6556>
This commit is contained in:
Philipp Zabel 2024-04-05 14:21:38 +02:00 committed by GStreamer Marge Bot
parent 4ea7d5ae64
commit 993d8b89bc

View file

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