[Speex-dev] Deallocation of buffers
Fritz Koenig
fkoenig at on2.com
Wed May 25 11:58:00 PDT 2005
I noticed that in the narrow band and wide band destroy functions only
the main pointer is being freed. I think that it should be:
void nb_decoder_destroy(void *state)
{
DecState *st;
st=(DecState*)state;
speex_free (st->inBuf);
speex_free (st->excBuf);
speex_free (st->innov);
speex_free (st->interp_qlpc);
speex_free (st->qlsp);
speex_free (st->old_qlsp);
speex_free (st->interp_qlsp);
speex_free (st->mem_sp);
speex_free (st->comb_mem);
speex_free (st->pi_gain);
speex_free (st);
}
This would apply to the encoder destroy functions also.
-Fritz
On2 Technologies, Inc.
http://www.on2.com
More information about the Speex-dev
mailing list