[xiph-commits] r7161 - trunk/speex/libspeex

conrad at dactyl.lonelymoon.com conrad
Thu Jul 15 23:07:35 PDT 2004


Author: conrad
Date: Thu Jul 15 23:07:35 2004
New Revision: 7161

Modified:
trunk/speex/libspeex/modes_noglobals.c
Log:
free alloc'd params in malloc'd submodes


Modified: trunk/speex/libspeex/modes_noglobals.c
===================================================================
--- trunk/speex/libspeex/modes_noglobals.c	2004-07-16 05:47:48 UTC (rev 7160)
+++ trunk/speex/libspeex/modes_noglobals.c	2004-07-16 06:07:34 UTC (rev 7161)
@@ -161,6 +161,12 @@
static void
speex_submode_free (const SpeexSubmode * submode)
{
+  if (submode->ltp_params)
+    speex_ltp_params_free (submode->ltp_params);
+
+  if (submode->innovation_params)
+    speex_split_cb_params_free (submode->innovation_params);
+
speex_free ((void *)submode);
}

@@ -508,7 +514,7 @@
/*No pitch quantization*/
pitch_search_3tap,
pitch_unquant_3tap,
-   &ltp_params_vlbr,
+   ltp_params_vlbr(),
/*Innovation quantization*/
split_cb_search_shape_sign,
split_cb_shape_sign_unquant,



More information about the commits mailing list