mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
core: improve cleanup
This commit is contained in:
parent
b2992a0f8a
commit
c30d938034
1 changed files with 6 additions and 6 deletions
|
|
@ -590,18 +590,18 @@ void pw_core_destroy(struct pw_core *core)
|
||||||
|
|
||||||
spa_hook_remove(&core->global_listener);
|
spa_hook_remove(&core->global_listener);
|
||||||
|
|
||||||
spa_list_consume(node, &core->node_list, link)
|
|
||||||
pw_node_destroy(node);
|
|
||||||
|
|
||||||
spa_list_consume(device, &core->device_list, link)
|
|
||||||
pw_device_destroy(device);
|
|
||||||
|
|
||||||
spa_list_consume(remote, &core->remote_list, link)
|
spa_list_consume(remote, &core->remote_list, link)
|
||||||
pw_remote_destroy(remote);
|
pw_remote_destroy(remote);
|
||||||
|
|
||||||
spa_list_consume(module, &core->module_list, link)
|
spa_list_consume(module, &core->module_list, link)
|
||||||
pw_module_destroy(module);
|
pw_module_destroy(module);
|
||||||
|
|
||||||
|
spa_list_consume(node, &core->node_list, link)
|
||||||
|
pw_node_destroy(node);
|
||||||
|
|
||||||
|
spa_list_consume(device, &core->device_list, link)
|
||||||
|
pw_device_destroy(device);
|
||||||
|
|
||||||
spa_list_consume(resource, &core->registry_resource_list, link)
|
spa_list_consume(resource, &core->registry_resource_list, link)
|
||||||
pw_resource_destroy(resource);
|
pw_resource_destroy(resource);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue