[0.11] gst-plugins-ugly: a52dec: plug buffer leak

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


Module: gst-plugins-ugly
Branch: 0.11
Commit: 2e7b2d8bdfd2cfbef1b4196676190b03f26de4db
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-ugly/commit/?id=2e7b2d8bdfd2cfbef1b4196676190b03f26de4db

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Thu Jan 12 13:25:22 2012 +0100

a52dec: plug buffer leak

---

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

diff --git a/ext/a52dec/gsta52dec.c b/ext/a52dec/gsta52dec.c
index 5827f57..18ea1da 100644
--- a/ext/a52dec/gsta52dec.c
+++ b/ext/a52dec/gsta52dec.c
@@ -733,6 +733,7 @@ gst_a52dec_chain (GstPad * pad, GstBuffer * buf)
       /* first_access = 0 or 1, so if there's a timestamp it applies to the first byte */
       subbuf = gst_buffer_create_sub (buf, offset, size - offset);
       gst_buffer_copy_metadata (subbuf, buf, GST_BUFFER_COPY_ALL);
+      gst_buffer_unref (buf);
       ret = a52dec->base_chain (pad, subbuf);
     }
   } else {



More information about the gstreamer-commits mailing list