parsebin: Fix leak 69/309069/1
authorEdward Hervey <edward@centricular.com>
Mon, 31 Oct 2022 15:06:45 +0000 (16:06 +0100)
committerEunhye Choi <eunhae1.choi@samsung.com>
Thu, 4 Apr 2024 08:28:21 +0000 (17:28 +0900)
Release the reference on the collection which was given to us when extracting it
from the event/message.

Change-Id: If586c8a815383a590c0a05c4c4762f1bf55263c6
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3319>

packaging/gstreamer.spec
subprojects/gst-plugins-base/gst/playback/gstparsebin.c

index c9beaea997cf3e48bfb438e252dc1e2016453ff6..36b864c357a20f3080e23d0c37fe0295ed5cec8d 100644 (file)
@@ -62,7 +62,7 @@
 
 Name:           %{_name}
 Version:        1.20.0
-Release:        56
+Release:        57
 Summary:        Streaming-Media Framework Runtime
 License:        LGPL-2.0+
 Group:          Multimedia/Framework
index 02eb82a665d1b5e04616b31591e499c2329b2c0b..e30fa0558e91f2162748d2b1fe0407447b4341ce 100644 (file)
@@ -1197,6 +1197,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:
@@ -4047,6 +4048,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:{