[gnome-builder] tree: don't require autoptr() just for GError



commit 45b0b762f6a2134b22c82a3ad14aea3b4a714108
Author: Christian Hergert <christian hergert me>
Date:   Sat Apr 18 18:54:50 2015 -0700

    tree: don't require autoptr() just for GError

 src/tree/gb-tree.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/tree/gb-tree.c b/src/tree/gb-tree.c
index 9550d74..66ba186 100644
--- a/src/tree/gb-tree.c
+++ b/src/tree/gb-tree.c
@@ -1131,7 +1131,7 @@ gb_tree_real_action (GbTree      *self,
 
   if (*param != 0)
     {
-      g_autoptr(GError) error = NULL;
+      GError *error = NULL;
 
       variant = g_variant_parse (NULL, param, NULL, NULL, &error);
 
@@ -1139,6 +1139,7 @@ gb_tree_real_action (GbTree      *self,
         {
           g_warning ("can't parse keybinding parameters \"%s\": %s",
                      param, error->message);
+          g_clear_error (&error);
           return;
         }
     }


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