spa: audioconvert: free resampler

resample::free() needs to be called in `impl_clear()` otherwise the
resampler's private data is leaked when the audioconvert instance is destroyed.
This commit is contained in:
Barnabás Pőcze 2022-06-16 19:46:24 +02:00
parent bc67745c07
commit 492a328227

View file

@ -2559,6 +2559,10 @@ static int impl_clear(struct spa_handle *handle)
free(this->scratch);
free(this->tmp);
free(this->tmp2);
if (this->resample.free)
resample_free(&this->resample);
return 0;
}