audioadapter: clear convert handle to avoid leaks

This commit is contained in:
Wim Taymans 2020-06-02 17:14:23 +02:00
parent 7d88c37e5b
commit c4b87aa5e2

View file

@ -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;