From: Arun Raghavan Date: Mon, 10 Oct 2011 16:47:55 +0000 (+0530) Subject: echo-cancel: Close debug files on module unload X-Git-Tag: v1.99.1~253 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=518338ac0e781e13bd893ee2d585af40f3ce04ae;p=platform%2Fupstream%2Fpulseaudio.git 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 b17e18f..b1fa791 100644 --- a/src/modules/echo-cancel/module-echo-cancel.c +++ b/src/modules/echo-cancel/module-echo-cancel.c @@ -1773,6 +1773,15 @@ 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); }