[0.11] gst-plugins-bad: opusparse: fix caps leak

Tim Müller tpm at kemper.freedesktop.org
Thu Jan 12 16:19:12 PST 2012


Module: gst-plugins-bad
Branch: 0.11
Commit: 1678bcbeec5885f26fdab07b03693f8ba536b617
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=1678bcbeec5885f26fdab07b03693f8ba536b617

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Wed Jan 11 16:34:35 2012 +0000

opusparse: fix caps leak

---

 ext/opus/gstopusparse.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ext/opus/gstopusparse.c b/ext/opus/gstopusparse.c
index cdd035e..f6e45ec 100644
--- a/ext/opus/gstopusparse.c
+++ b/ext/opus/gstopusparse.c
@@ -317,6 +317,7 @@ gst_opus_parse_parse_frame (GstBaseParse * base, GstBaseParseFrame * frame)
     gst_buffer_replace (&parse->comment_header, NULL);
 
     gst_pad_set_caps (GST_BASE_PARSE_SRC_PAD (parse), caps);
+    gst_caps_unref (caps);
     parse->header_sent = TRUE;
   }
 



More information about the gstreamer-commits mailing list