[xiph-cvs] cvs commit: speex/libspeex mdf.c

Jean-Marc Valin jm at xiph.org
Mon Aug 18 22:47:05 PDT 2003



jm          03/08/19 01:47:05

  Modified:    libspeex mdf.c
  Log:
  implemented destructor

Revision  Changes    Path
1.3       +13 -0     speex/libspeex/mdf.c

Index: mdf.c
===================================================================
RCS file: /usr/local/cvsroot/speex/libspeex/mdf.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- mdf.c	19 Aug 2003 03:59:27 -0000	1.2
+++ mdf.c	19 Aug 2003 05:47:04 -0000	1.3
@@ -65,6 +65,19 @@
 /** Destroys an echo canceller state */
 void speex_echo_state_destroy(SpeexEchoState *st)
 {
+   drft_clear(&st->fft_lookup);
+   speex_free(st->x);
+   speex_free(st->y);
+
+   speex_free(st->X);
+   speex_free(st->Y);
+   speex_free(st->E);
+   speex_free(st->W);
+   speex_free(st->PHI);
+   speex_free(st->power);
+   speex_free(st->power_1);
+
+   speex_free(st);
 }
 
 /** Performs echo cancellation a frame */

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list