From 6f9872cb56b415cb71cf49229a47322ac00f3782 Mon Sep 17 00:00:00 2001
From: Philipp Zabel
Date: Fri, 5 Apr 2024 14:21:38 +0200
Subject: [PATCH] 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:
---
subprojects/gst-plugins-good/sys/v4l2/gstv4l2allocator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2allocator.c b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2allocator.c
index 129a4198d3..9900a25a11 100644
--- a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2allocator.c
+++ b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2allocator.c
@@ -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