[calls] mm-provider: Don't leak error



commit e7c3775f425aa2392bc9496fc5f4c6f9c3603532
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Fri Sep 2 12:08:45 2022 +0200

    mm-provider: Don't leak error

 plugins/provider/mm/calls-mm-provider.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/provider/mm/calls-mm-provider.c b/plugins/provider/mm/calls-mm-provider.c
index 44249584..11462e46 100644
--- a/plugins/provider/mm/calls-mm-provider.c
+++ b/plugins/provider/mm/calls-mm-provider.c
@@ -274,7 +274,7 @@ mm_manager_new_cb (GDBusConnection *connection,
                    GAsyncResult    *res,
                    CallsMMProvider *self)
 {
-  GError *error = NULL;
+  g_autoptr (GError) error = NULL;
 
   self->mm = mm_manager_new_finish (res, &error);
   if (!self->mm) {


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