From 2e7b2d8bdfd2cfbef1b4196676190b03f26de4db Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Thu, 12 Jan 2012 13:25:22 +0100 Subject: [PATCH] a52dec: plug buffer leak --- ext/a52dec/gsta52dec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/a52dec/gsta52dec.c b/ext/a52dec/gsta52dec.c index 5827f57694..18ea1da20b 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 {