clean the hook lists

Make sure the hook lists are emptied so that the removed callbacks
are called. The callers should really remove the hook they installed
themselves but this is a last chance to fix things up.
This commit is contained in:
Wim Taymans 2020-11-06 15:55:33 +01:00
parent 1570e62635
commit a2549fc638
21 changed files with 47 additions and 0 deletions

View file

@ -239,6 +239,7 @@ endpoint_init(struct endpoint * self)
static void
endpoint_clear(struct endpoint * self)
{
spa_hook_list_clean(&self->hooks);
pw_properties_free(self->properties);
}