mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
global: don't destroy resources when unregistering
We can unregister the global without having to destroy the resources. We always destroy the resources when the global is destroyed.
This commit is contained in:
parent
f0c887186c
commit
7b2f96ae75
1 changed files with 0 additions and 2 deletions
|
|
@ -167,8 +167,6 @@ static int global_unregister(struct pw_global *global)
|
||||||
if (PW_PERM_IS_R(permissions))
|
if (PW_PERM_IS_R(permissions))
|
||||||
pw_registry_resource_global_remove(resource, global->id);
|
pw_registry_resource_global_remove(resource, global->id);
|
||||||
}
|
}
|
||||||
spa_list_consume(resource, &global->resource_list, link)
|
|
||||||
pw_resource_destroy(resource);
|
|
||||||
|
|
||||||
spa_list_remove(&global->link);
|
spa_list_remove(&global->link);
|
||||||
pw_map_remove(&core->globals, global->id);
|
pw_map_remove(&core->globals, global->id);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue