summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2023-05-12 18:35:48 +0200
committerTim-Philipp Müller <tim@centricular.com>2023-05-13 00:27:59 +0100
commitff533b679dad9f548d50962cd6d37315ef3c30ae (patch)
tree60941e4141b6481ab767ae5aa6c69f87d8a0ecda
parent40cd8d5a96cf3374fb226467c5c13c6cb20782d1 (diff)
downloadgstreamer-ff533b679dad9f548d50962cd6d37315ef3c30ae.tar.gz
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/4624>
-rw-r--r--subprojects/gstreamer/gst/parse/grammar.y.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/subprojects/gstreamer/gst/parse/grammar.y.in b/subprojects/gstreamer/gst/parse/grammar.y.in
index d1ed805c84..0794bd2255 100644
--- a/subprojects/gstreamer/gst/parse/grammar.y.in
+++ b/subprojects/gstreamer/gst/parse/grammar.y.in
@@ -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);
}
}