transcodebin: Don't leak GstStream
authorEdward Hervey <edward@centricular.com>
Sat, 12 Nov 2022 08:15:23 +0000 (09:15 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Sun, 13 Nov 2022 05:59:11 +0000 (06:59 +0100)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3390>

subprojects/gst-plugins-bad/gst/transcode/gsttranscodebin.c

index 0c724c5..9374a67 100644 (file)
@@ -359,6 +359,8 @@ gst_transcode_bin_link_encodebin_pad (GstTranscodeBin * self, GstPad * pad,
       gst_event_parse_stream (sstart, &tmpstream);
 
       stream = setup_stream (self, tmpstream);
+
+      gst_object_unref (tmpstream);
     }
 
     if (!stream) {