From: Edward Hervey Date: Mon, 31 Oct 2022 15:06:45 +0000 (+0100) Subject: parsebin: Fix leak X-Git-Tag: 1.22.0~594 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93d8b3f6607c433babfa8e5ae7c39f86f0b3b45f;p=platform%2Fupstream%2Fgstreamer.git parsebin: Fix leak Release the reference on the collection which was given to us when extracting it from the event/message. Part-of: --- diff --git a/subprojects/gst-plugins-base/gst/playback/gstparsebin.c b/subprojects/gst-plugins-base/gst/playback/gstparsebin.c index 0f442b2..d2f1b7f 100644 --- a/subprojects/gst-plugins-base/gst/playback/gstparsebin.c +++ b/subprojects/gst-plugins-base/gst/playback/gstparsebin.c @@ -1219,6 +1219,7 @@ copy_sticky_events (GstPad * pad, GstEvent ** eventptr, gpointer user_data) GstStreamCollection *collection = NULL; gst_event_parse_stream_collection (event, &collection); gst_parse_pad_update_stream_collection (ppad, collection); + gst_object_unref (collection); break; } default: @@ -4124,6 +4125,7 @@ gst_parse_pad_event (GstPad * pad, GstPadProbeInfo * info, gpointer user_data) gst_element_post_message (GST_ELEMENT (parsepad->parsebin), gst_message_new_stream_collection (GST_OBJECT (parsepad->parsebin), collection)); + gst_object_unref (collection); break; } case GST_EVENT_EOS:{