From 7b2f96ae754e85b9b68d4959d1448795ea2842fe Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 13 Mar 2019 16:23:26 +0100 Subject: [PATCH] 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. --- src/pipewire/global.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/pipewire/global.c b/src/pipewire/global.c index f5921fb4f..c79769e4a 100644 --- a/src/pipewire/global.c +++ b/src/pipewire/global.c @@ -167,8 +167,6 @@ static int global_unregister(struct pw_global *global) if (PW_PERM_IS_R(permissions)) 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); pw_map_remove(&core->globals, global->id);