From 969b7b62876159825dbc13517ae123383483d03b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 13 Oct 2020 09:52:52 +0200 Subject: [PATCH] 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. --- src/pipewire/pipewire.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipewire/pipewire.c b/src/pipewire/pipewire.c index c23c2a1f8..246016e85 100644 --- a/src/pipewire/pipewire.c +++ b/src/pipewire/pipewire.c @@ -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);