diff --git a/spa/plugins/audioconvert/audioconvert.c b/spa/plugins/audioconvert/audioconvert.c index 23ac2429b..4a669bcb4 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -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; }