From 58331afcf74cebe9f88490112d4eeb053c86b474 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Mon, 5 Jul 2021 17:39:03 +0200 Subject: [PATCH] sip: provider: Use g_auto and GStrv Instead of char** and g_strfreev() --- plugins/sip/calls-sip-provider.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/sip/calls-sip-provider.c b/plugins/sip/calls-sip-provider.c index 1bb5388..cc40927 100644 --- a/plugins/sip/calls-sip-provider.c +++ b/plugins/sip/calls-sip-provider.c @@ -91,7 +91,7 @@ calls_sip_provider_load_accounts (CallsSipProvider *self) { g_autoptr (GError) error = NULL; g_autoptr (GKeyFile) key_file = g_key_file_new (); - gchar **groups = NULL; + g_auto (GStrv) groups = NULL; g_assert (CALLS_IS_SIP_PROVIDER (self)); @@ -118,8 +118,6 @@ calls_sip_provider_load_accounts (CallsSipProvider *self) /* TODO rewrite */ } - - g_strfreev (groups); }