diff options
author | jm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800> | 2005-06-10 09:32:24 +0400 |
---|---|---|
committer | jm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800> | 2005-06-10 09:32:24 +0400 |
commit | d9af572a910de1bda1fafc2210584ea9ac8353a3 (patch) | |
tree | afd560a8d1a71f33dc12f9832ae13f093385589c | |
parent | 6f47d82db9bb295859bf807f1b54ecd7a028870d (diff) |
Added a bunch of speex_free() calls in the sb_celp destructorSpeex-1.1.10
git-svn-id: http://svn.xiph.org/trunk/speex@9427 0101bb08-14d6-0310-b084-bc0e0c8e3800
-rw-r--r-- | INSTALL | 2 | ||||
-rw-r--r-- | libspeex/sb_celp.c | 54 |
2 files changed, 55 insertions, 1 deletions
@@ -4,5 +4,5 @@ Installing Speex is as easy as: % make % make install -Note that if you are using the code from CVS, you will need to run "autogen.sh" +Note that if you are using the code from SVN, you will need to run "autogen.sh" instead of "configure". diff --git a/libspeex/sb_celp.c b/libspeex/sb_celp.c index cfa4eab..87f03d7 100644 --- a/libspeex/sb_celp.c +++ b/libspeex/sb_celp.c @@ -338,6 +338,44 @@ void sb_encoder_destroy(void *state) speex_free_scratch(st->stack); #endif + speex_free(st->x0d); + speex_free(st->x1d); + speex_free(st->high); + speex_free(st->y0); + speex_free(st->y1); + + speex_free(st->h0_mem); + speex_free(st->h1_mem); + speex_free(st->g0_mem); + speex_free(st->g1_mem); + + speex_free(st->buf); + speex_free(st->excBuf); + speex_free(st->res); + speex_free(st->sw); + speex_free(st->target); + speex_free(st->window); + speex_free(st->lagWindow); + + speex_free(st->autocorr); + speex_free(st->lpc); + speex_free(st->bw_lpc1); + speex_free(st->bw_lpc2); + speex_free(st->lsp); + speex_free(st->qlsp); + speex_free(st->old_lsp); + speex_free(st->old_qlsp); + speex_free(st->interp_lsp); + speex_free(st->interp_qlsp); + speex_free(st->interp_lpc); + speex_free(st->interp_qlpc); + speex_free(st->pi_gain); + + speex_free(st->mem_sp); + speex_free(st->mem_sp2); + speex_free(st->mem_sw); + + speex_free(st); } @@ -862,6 +900,22 @@ void sb_decoder_destroy(void *state) #if !(defined(VAR_ARRAYS) || defined (USE_ALLOCA)) speex_free_scratch(st->stack); #endif + + speex_free(st->x0d); + speex_free(st->x1d); + speex_free(st->high); + speex_free(st->y0); + speex_free(st->y1); + speex_free(st->g0_mem); + speex_free(st->g1_mem); + speex_free(st->exc); + speex_free(st->qlsp); + speex_free(st->old_qlsp); + speex_free(st->interp_qlsp); + speex_free(st->interp_qlpc); + speex_free(st->pi_gain); + speex_free(st->mem_sp); + speex_free(state); } |