From c4b87aa5e2d59c40c39f172aa3b75f75241e5d58 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 2 Jun 2020 17:14:23 +0200 Subject: [PATCH] audioadapter: clear convert handle to avoid leaks --- spa/plugins/audioconvert/audioadapter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spa/plugins/audioconvert/audioadapter.c b/spa/plugins/audioconvert/audioadapter.c index f70d6d6d3..4cffdc2a3 100644 --- a/spa/plugins/audioconvert/audioadapter.c +++ b/spa/plugins/audioconvert/audioadapter.c @@ -958,6 +958,8 @@ static int impl_clear(struct spa_handle *handle) spa_hook_remove(&this->follower_listener); spa_node_set_callbacks(this->follower, NULL, NULL); + spa_handle_clear(this->hnd_convert); + if (this->buffers) free(this->buffers); this->buffers = NULL;