From b7b4d93452d7f6d53ec1e840690d9d80ad867243 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Sat, 1 Oct 2022 04:54:20 +1000 Subject: [PATCH] gstiterator: Don't use gst_object_unref() for a GObject The owner of a GstIterator is a plain GObject. Don't unref it with gst_object_unref(), or it will be logged in tracer info incorrectly. Part-of: --- subprojects/gstreamer/gst/gstiterator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gstreamer/gst/gstiterator.c b/subprojects/gstreamer/gst/gstiterator.c index 2ffad6b5d2..af8d2b170d 100644 --- a/subprojects/gstreamer/gst/gstiterator.c +++ b/subprojects/gstreamer/gst/gstiterator.c @@ -212,7 +212,7 @@ static void gst_list_iterator_free (GstListIterator * it) { if (it->owner) - gst_object_unref (it->owner); + g_object_unref (it->owner); } /**