clean up listeners

This commit is contained in:
Wim Taymans 2018-05-17 17:30:30 +02:00
parent 69d4144932
commit 6450c64542
3 changed files with 3 additions and 0 deletions

View file

@ -1136,6 +1136,7 @@ static void client_node_resource_destroy(void *data)
pw_log_debug("client-node %p: destroy", impl);
impl->node.resource = this->resource = NULL;
spa_hook_remove(&impl->resource_listener);
if (node->data_source.fd != -1) {
spa_loop_invoke(node->data_loop,