diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2023-05-12 18:35:48 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2023-05-13 00:27:59 +0100 |
commit | ff533b679dad9f548d50962cd6d37315ef3c30ae (patch) | |
tree | 60941e4141b6481ab767ae5aa6c69f87d8a0ecda | |
parent | 40cd8d5a96cf3374fb226467c5c13c6cb20782d1 (diff) | |
download | gstreamer-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.in | 2 |
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); } } |