Fixed a memory leak in the echo canceller (forgot to free() some pointers)
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Sat, 19 Jul 2008 20:20:02 +0000 (16:20 -0400)
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Sat, 19 Jul 2008 20:20:02 +0000 (16:20 -0400)
libspeex/mdf.c

index d97e678..456ab84 100644 (file)
@@ -617,6 +617,11 @@ EXPORT void speex_echo_state_destroy(SpeexEchoState *st)
 #ifdef FIXED_POINT
    speex_free(st->wtmp2);
 #endif
+   speex_free(st->memX);
+   speex_free(st->memD);
+   speex_free(st->memE);
+   speex_free(st->notch_mem);
+
    speex_free(st->play_buf);
    speex_free(st);