From 8accf2704bba2eae29874de8bb409ea67599500e Mon Sep 17 00:00:00 2001 From: Tim-Philipp Müller Date: Wed, 13 May 2009 09:18:07 +0100 Subject: 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. --- ext/flac/gstflacdec.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ext') 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; } -- cgit