Fix bluez node destroy

We create a ClientNode but monitor the resulting Node.
Destroy the object when removing a node.
This commit is contained in:
Wim Taymans 2020-07-03 16:26:52 +02:00
parent 8ad769b943
commit c28ca320d1
2 changed files with 5 additions and 0 deletions

View file

@ -201,6 +201,7 @@ static void bluez5_remove_node(struct device *device, struct node *node)
{
pw_log_debug("remove node %u", node->id);
spa_list_remove(&node->link);
sm_object_destroy(&node->snode->obj);
pw_impl_node_destroy(node->adapter);
pw_properties_free(node->props);
free(node);