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

Sebastian Dröge slomo at kemper.freedesktop.org
Tue Jan 10 06:50:52 PST 2012


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

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Tue Jan 10 13:38:42 2012 +0000

opusenc: fix caps leak

---

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

diff --git a/ext/opus/gstopusenc.c b/ext/opus/gstopusenc.c
index 0ccbbeb..016b891 100644
--- a/ext/opus/gstopusenc.c
+++ b/ext/opus/gstopusenc.c
@@ -897,6 +897,7 @@ gst_opus_enc_handle_frame (GstAudioEncoder * benc, GstBuffer * buf)
     GST_DEBUG_OBJECT (enc, "here are the caps: %" GST_PTR_FORMAT, caps);
 
     gst_pad_set_caps (GST_AUDIO_ENCODER_SRC_PAD (enc), caps);
+    gst_caps_unref (caps);
 
     enc->header_sent = TRUE;
   }



More information about the gstreamer-commits mailing list