mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
convolver: fix crash on FFT unload
Co-authored-by: Barnabás Pőcze <pobrn@protonmail.com>
This commit is contained in:
parent
68ff3ad841
commit
3ceb3288ca
1 changed files with 6 additions and 3 deletions
|
|
@ -232,9 +232,12 @@ static void convolver1_free(struct convolver1 *conv)
|
|||
fft_cpx_free(&conv->segments[i]);
|
||||
fft_cpx_free(&conv->segmentsIr[i]);
|
||||
}
|
||||
fft_destroy(conv->fft);
|
||||
fft_destroy(conv->ifft);
|
||||
fft_free(conv->fft_buffer);
|
||||
if (conv->fft)
|
||||
fft_destroy(conv->fft);
|
||||
if (conv->ifft)
|
||||
fft_destroy(conv->ifft);
|
||||
if (conv->fft_buffer)
|
||||
fft_free(conv->fft_buffer);
|
||||
free(conv->segments);
|
||||
free(conv->segmentsIr);
|
||||
fft_cpx_free(&conv->pre_mult);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue