remove hooks from objects

Remove the hooks we installed on objects in the destroy/free event
or before calling _destroy. This is not really needed but it is
a nice thing to do because it calls the hook removed callbacks.
This commit is contained in:
Wim Taymans 2020-11-06 15:53:32 +01:00
parent 6317bc4deb
commit 1570e62635
19 changed files with 109 additions and 27 deletions

View file

@ -77,6 +77,7 @@ struct node {
static void node_free(void *data)
{
struct node *n = data;
spa_hook_remove(&n->node_listener);
pw_properties_free(n->props);
}