[calls] sip: provider: Use g_auto and GStrv



commit 58331afcf74cebe9f88490112d4eeb053c86b474
Author: Evangelos Ribeiro Tzaras <evangelos tzaras puri sm>
Date:   Mon Jul 5 17:39:03 2021 +0200

    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 1bb53880..cc409276 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);
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]