[xiph-commits] r9427 - in trunk/speex: . libspeex

jm at motherfish-iii.xiph.org jm at motherfish-iii.xiph.org
Thu Jun 9 22:32:27 PDT 2005


Author: jm
Date: 2005-06-09 22:32:24 -0700 (Thu, 09 Jun 2005)
New Revision: 9427

Modified:
   trunk/speex/INSTALL
   trunk/speex/libspeex/sb_celp.c
Log:
Added a bunch of speex_free() calls in the sb_celp destructor


Modified: trunk/speex/INSTALL
===================================================================
--- trunk/speex/INSTALL	2005-06-10 04:29:21 UTC (rev 9426)
+++ trunk/speex/INSTALL	2005-06-10 05:32:24 UTC (rev 9427)
@@ -4,5 +4,5 @@
 % 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".

Modified: trunk/speex/libspeex/sb_celp.c
===================================================================
--- trunk/speex/libspeex/sb_celp.c	2005-06-10 04:29:21 UTC (rev 9426)
+++ trunk/speex/libspeex/sb_celp.c	2005-06-10 05:32:24 UTC (rev 9427)
@@ -338,6 +338,44 @@
    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 @@
 #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);
 }
 



More information about the commits mailing list