monitor: unload spa handle instead of free()

This commit is contained in:
Wim Taymans 2019-07-31 09:27:05 +02:00
parent 30576fcff8
commit 9869734250
3 changed files with 3 additions and 7 deletions

View file

@ -288,7 +288,7 @@ static void bluez5_remove_object(struct monitor *monitor, struct bluez5_object *
spa_list_remove(&obj->link);
spa_hook_remove(&obj->device_listener);
pw_proxy_destroy(obj->proxy);
free(obj->handle);
pw_unload_spa_handle(obj->handle);
free(obj);
}