diff --git a/src/modules/module-client-node/remote-node.c b/src/modules/module-client-node/remote-node.c index e7315a122..edc305af7 100644 --- a/src/modules/module-client-node/remote-node.c +++ b/src/modules/module-client-node/remote-node.c @@ -144,8 +144,12 @@ static void clean_transport(struct node_data *data) spa_list_consume(l, &data->links, link) clear_link(data, l); - while ((mm = pw_mempool_find_tag(data->pool, tag, sizeof(uint32_t))) != NULL) + while ((mm = pw_mempool_find_tag(data->pool, tag, sizeof(uint32_t))) != NULL) { + if (mm->tag[1] == SPA_ID_INVALID) + spa_node_set_io(data->node->node, mm->tag[2], NULL, 0); + pw_memmap_free(mm); + } pw_memmap_free(data->activation); data->node->rt.activation = data->node->activation->map->ptr;