summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2023-05-12 18:35:48 +0200
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2023-05-12 19:07:09 +0000
commit9914b34bf518b93056136c899511121c0aece419 (patch)
treedc368ccbff1863cad9b33adee988081de19e1859
parent7df7efdc3f58477e3bd7cd95f68c9ef2ae2319fa (diff)
downloadgstreamer-9914b34bf518b93056136c899511121c0aece419.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/4622>
-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 a2cdb69c38..a3a67d4a3c 100644
--- a/subprojects/gstreamer/gst/parse/grammar.y.in
+++ b/subprojects/gstreamer/gst/parse/grammar.y.in
@@ -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);
}
}