parse/grammar: fix missing unref of looked up child

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/4622>
This commit is contained in:
Mathieu Duponchelle 2023-05-12 18:35:48 +02:00 committed by GStreamer Marge Bot
parent 7df7efdc3f
commit 9914b34bf5

View file

@ -732,6 +732,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);
}
}