From ae687b02aaf99c9576cab23fbd7713c3fcc71eb6 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Thu, 16 Mar 2023 12:38:38 +0100 Subject: [PATCH] manager: Clear providers after origins Fixes a segmentation fault on shutdown in nua_unregister() --- src/calls-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calls-manager.c b/src/calls-manager.c index e7cbb78..99916d7 100644 --- a/src/calls-manager.c +++ b/src/calls-manager.c @@ -648,8 +648,8 @@ calls_manager_finalize (GObject *object) g_clear_object (&self->origins); g_clear_object (&self->contacts_provider); - g_clear_pointer (&self->providers, g_hash_table_unref); g_clear_pointer (&self->origins_by_protocol, g_hash_table_unref); + g_clear_pointer (&self->providers, g_hash_table_unref); g_clear_pointer (&self->dial_actions_by_protocol, g_hash_table_unref); G_OBJECT_CLASS (calls_manager_parent_class)->finalize (object);