gstiterator: Don't use gst_object_unref() for a GObject
authorJan Schmidt <jan@centricular.com>
Fri, 30 Sep 2022 18:54:20 +0000 (04:54 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 4 Oct 2022 11:19:14 +0000 (11:19 +0000)
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3101>

subprojects/gstreamer/gst/gstiterator.c

index 2ffad6b..af8d2b1 100644 (file)
@@ -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);
 }
 
 /**