Added a bunch of speex_free() calls in the sb_celp destructor Speex-1.1.10
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Fri, 10 Jun 2005 05:32:24 +0000 (05:32 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Fri, 10 Jun 2005 05:32:24 +0000 (05:32 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@9427 0101bb08-14d6-0310-b084-bc0e0c8e3800

INSTALL
libspeex/sb_celp.c

diff --git a/INSTALL b/INSTALL
index 15f2e5f..a2482ca 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -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".
index cfa4eab..87f03d7 100644 (file)
@@ -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);
 }