From 22b67cc95d0d685d6b1c240f6cd9d68367f5328f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 17 Jul 2019 15:23:19 +0200 Subject: [PATCH] adapter: remove slave hooks --- spa/plugins/audioconvert/audioadapter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spa/plugins/audioconvert/audioadapter.c b/spa/plugins/audioconvert/audioadapter.c index 2f17d44d3..210ca9183 100644 --- a/spa/plugins/audioconvert/audioadapter.c +++ b/spa/plugins/audioconvert/audioadapter.c @@ -856,6 +856,9 @@ static int impl_clear(struct spa_handle *handle) this = (struct impl *) handle; + spa_hook_remove(&this->slave_listener); + spa_node_set_callbacks(this->slave, NULL, NULL); + if (this->buffers) free(this->buffers); this->buffers = NULL;