From 94cfbd83b294a643f225f610d9b841886bd52e5a Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Mon, 10 Apr 2023 08:53:43 +0200 Subject: [PATCH] sip-provider: Chain up to constructed early --- plugins/provider/sip/calls-sip-provider.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/provider/sip/calls-sip-provider.c b/plugins/provider/sip/calls-sip-provider.c index 8c771ff..a80ef64 100644 --- a/plugins/provider/sip/calls-sip-provider.c +++ b/plugins/provider/sip/calls-sip-provider.c @@ -487,8 +487,10 @@ static void calls_sip_provider_constructed (GObject *object) { CallsSipProvider *self = CALLS_SIP_PROVIDER (object); - g_autoptr (GError) error = NULL; + + G_OBJECT_CLASS (calls_sip_provider_parent_class)->constructed (object); + if (calls_sip_provider_init_sofia (self, &error)) { if (!self->use_memory_backend) { g_autoptr (GKeyFile) key_file = g_key_file_new (); @@ -500,7 +502,7 @@ calls_sip_provider_constructed (GObject *object) else g_warning ("Error loading keyfile '%s': %s", self->filename, error->message); - goto out; + return; } calls_sip_provider_load_accounts (self, key_file); @@ -509,9 +511,6 @@ calls_sip_provider_constructed (GObject *object) g_warning ("Could not initialize sofia stack: %s", error->message); } -out: - - G_OBJECT_CLASS (calls_sip_provider_parent_class)->constructed (object); }