implemented destructor
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Tue, 19 Aug 2003 05:47:04 +0000 (05:47 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Tue, 19 Aug 2003 05:47:04 +0000 (05:47 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@5226 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/mdf.c

index dd0fe7a..76c5224 100644 (file)
@@ -65,6 +65,19 @@ SpeexEchoState *speex_echo_state_init(int frame_size, int filter_length)
 /** 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 */