mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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:
parent
bc67745c07
commit
492a328227
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue