summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-05-13 09:18:07 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-05-13 09:18:07 +0100
commit8accf2704bba2eae29874de8bb409ea67599500e (patch)
treed8003762827359610849b143555a205744d7fc4d /ext
parente93f784ee11b5b57612cd89a0443fab47a4a6590 (diff)
flacdec: fix buffer leak
gst_buffer_replace() will take its own ref, so we still have to unref the buffer if we don't need it any longer.
Diffstat (limited to 'ext')
-rw-r--r--ext/flac/gstflacdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/flac/gstflacdec.c b/ext/flac/gstflacdec.c
index 9fe153aa..2276ac74 100644
--- a/ext/flac/gstflacdec.c
+++ b/ext/flac/gstflacdec.c
@@ -1032,6 +1032,7 @@ gst_flac_dec_write (GstFlacDec * flacdec, const FLAC__Frame * frame,
"not pushing %d samples at offset %" G_GINT64_FORMAT
" (in seek)", samples, GST_BUFFER_OFFSET (outbuf));
gst_buffer_replace (&flacdec->pending, outbuf);
+ gst_buffer_unref (outbuf);
flacdec->pending_samples = samples;
ret = GST_FLOW_OK;
}