From ec2f30c4db8b1b456982659c0b4382af6e7f1882 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 14 Nov 2022 13:53:02 +0100 Subject: [PATCH] imagesequencesrc: Don't leak caps Part-of: --- .../gst-plugins-good/gst/multifile/gstimagesequencesrc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-good/gst/multifile/gstimagesequencesrc.c b/subprojects/gst-plugins-good/gst/multifile/gstimagesequencesrc.c index ce289b7219..c778df7e1b 100644 --- a/subprojects/gst-plugins-good/gst/multifile/gstimagesequencesrc.c +++ b/subprojects/gst-plugins-good/gst/multifile/gstimagesequencesrc.c @@ -529,6 +529,8 @@ gst_image_sequence_src_set_caps (GstImageSequenceSrc * self, GstCaps * caps) gst_pad_set_caps (GST_BASE_SRC_PAD (self), new_caps); GST_DEBUG_OBJECT (self, "Setting new caps: %" GST_PTR_FORMAT, new_caps); + + gst_caps_unref (new_caps); } /* Call with LOCK */