adapter: remove slave hooks

This commit is contained in:
Wim Taymans 2019-07-17 15:23:19 +02:00
parent 461da71ae3
commit 22b67cc95d

View file

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