parse/grammar: fix missing unref of looked up child
authorMathieu Duponchelle <mathieu@centricular.com>
Fri, 12 May 2023 16:35:48 +0000 (18:35 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 12 May 2023 23:27:59 +0000 (00:27 +0100)
the target parameter of gst_child_proxy_lookup() is (transfer full)

Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2560
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4624>

subprojects/gstreamer/gst/parse/grammar.y.in

index d1ed805..0794bd2 100644 (file)
@@ -672,6 +672,8 @@ static GstElement * gst_parse_element_make (graph_t *graph, element_t *data) {
         g_object_set_property (target, pspec->name, &v);
         g_value_unset (&v);
       }
+
+      gst_object_unref (target);
     }
   }