mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
echo-cancel: Fix memory leak / deinitialization of Adrian AEC
was simply absent Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
This commit is contained in:
parent
c43e885537
commit
bf29c8dcf7
4 changed files with 18 additions and 3 deletions
|
|
@ -106,6 +106,17 @@ AEC* AEC_init(int RATE, int have_vector)
|
|||
return a;
|
||||
}
|
||||
|
||||
void AEC_done(AEC *a) {
|
||||
pa_assert(a);
|
||||
|
||||
pa_xfree(a->Fx);
|
||||
pa_xfree(a->Fe);
|
||||
pa_xfree(a->acMic);
|
||||
pa_xfree(a->acSpk);
|
||||
pa_xfree(a->cutoff);
|
||||
pa_xfree(a);
|
||||
}
|
||||
|
||||
// Adrian soft decision DTD
|
||||
// (Dual Average Near-End to Far-End signal Ratio DTD)
|
||||
// This algorithm uses exponential smoothing with differnt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue