mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
adapter: remove slave hooks
This commit is contained in:
parent
461da71ae3
commit
22b67cc95d
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue