mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
global: first emit then destroy, then unregister
This commit is contained in:
parent
718847fcd5
commit
beae1890d3
1 changed files with 2 additions and 2 deletions
|
|
@ -306,10 +306,10 @@ void pw_global_destroy(struct pw_global *global)
|
|||
struct pw_resource *resource;
|
||||
|
||||
pw_log_debug("global %p: destroy %u", global, global->id);
|
||||
global_unregister(global);
|
||||
|
||||
pw_global_events_destroy(global);
|
||||
|
||||
global_unregister(global);
|
||||
|
||||
spa_list_consume(resource, &global->resource_list, link)
|
||||
pw_resource_destroy(resource);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue