mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
pipewire: clear log first, then remove plugins
Reset the logger first before we unload the plugins or else we might try to log after we unloaded the logger plugin and crash.
This commit is contained in:
parent
50d07be7fc
commit
969b7b6287
1 changed files with 1 additions and 1 deletions
|
|
@ -418,6 +418,7 @@ void pw_deinit(void)
|
|||
struct registry *registry = &global_registry;
|
||||
struct plugin *p;
|
||||
|
||||
pw_log_set(NULL);
|
||||
spa_list_consume(p, ®istry->plugins, link) {
|
||||
struct handle *h;
|
||||
p->ref++;
|
||||
|
|
@ -427,7 +428,6 @@ void pw_deinit(void)
|
|||
}
|
||||
if (support->categories)
|
||||
pw_free_strv(support->categories);
|
||||
pw_log_set(NULL);
|
||||
spa_zero(global_support);
|
||||
spa_zero(global_registry);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue