diff options
author | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2011-10-10 22:17:55 +0530 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2011-10-11 20:19:10 +0530 |
commit | 7b13a79959205c8c16c863c8ee31069a1f41602c (patch) | |
tree | 8acee39e9a211e6edd4b647d47f674b38eb2ff5d | |
parent | 8a5e6e8356254b9b81093bb2ab131b83d3df15d0 (diff) |
echo-cancel: Close debug files on module unload
-rw-r--r-- | src/modules/echo-cancel/module-echo-cancel.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/modules/echo-cancel/module-echo-cancel.c b/src/modules/echo-cancel/module-echo-cancel.c index 97df0b15..6c39150b 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); } |