link-factory: clear links when client dies

This commit is contained in:
Wim Taymans 2018-09-18 12:33:01 +02:00
parent 61cc453cbe
commit f57d1125f6
2 changed files with 59 additions and 4 deletions

View file

@ -80,8 +80,7 @@ static const struct pw_resource_events resource_events = {
static void node_destroy(void *data)
{
struct node_data *nd = data;
spa_list_remove(&nd->link);
spa_hook_remove(&nd->resource_listener);
nd->dsp = NULL;
}
static const struct pw_node_events node_events = {