[pulseaudio-commits] Branch 'stable-1.x' - src/modules

Arun Raghavan arun at kemper.freedesktop.org
Tue Oct 11 11:07:52 PDT 2011


 src/modules/echo-cancel/module-echo-cancel.c |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit 7b13a79959205c8c16c863c8ee31069a1f41602c
Author: Arun Raghavan <arun.raghavan at collabora.co.uk>
Date:   Mon Oct 10 22:17:55 2011 +0530

    echo-cancel: Close debug files on module unload

diff --git a/src/modules/echo-cancel/module-echo-cancel.c b/src/modules/echo-cancel/module-echo-cancel.c
index 97df0b1..6c39150 100644
--- a/src/modules/echo-cancel/module-echo-cancel.c
+++ b/src/modules/echo-cancel/module-echo-cancel.c
@@ -1723,5 +1723,14 @@ void pa__done(pa_module*m) {
     if (u->asyncmsgq)
         pa_asyncmsgq_unref(u->asyncmsgq);
 
+    if (u->save_aec) {
+        if (u->played_file)
+            fclose(u->played_file);
+        if (u->captured_file)
+            fclose(u->captured_file);
+        if (u->canceled_file)
+            fclose(u->canceled_file);
+    }
+
     pa_xfree(u);
 }



More information about the pulseaudio-commits mailing list