From 77509c80c99b5f614473d09ef68bfa3ce2a08f62 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Wed, 27 Jan 2010 15:24:52 +0100 Subject: [PATCH] speexdec: free some more when resetting Fixes #608255. --- ext/speex/gstspeexdec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/speex/gstspeexdec.c b/ext/speex/gstspeexdec.c index 38899b5d3..d05618e67 100644 --- a/ext/speex/gstspeexdec.c +++ b/ext/speex/gstspeexdec.c @@ -148,7 +148,9 @@ gst_speex_dec_reset (GstSpeexDec * dec) dec->frame_size = 0; dec->frame_duration = 0; dec->mode = NULL; - dec->header = NULL; /* FIXME: free ?! */ + free (dec->header); + dec->header = NULL; + speex_bits_destroy (&dec->bits); if (dec->state) { speex_decoder_destroy (dec->state); dec->state = NULL; -- 2.34.1