[glib] move the g_free() from the last commit down



commit 90c49a0654f4aa556f3d2ccb7c91b6e480eef1ae
Author: Ryan Lortie <desrt desrt ca>
Date:   Sat Jul 10 17:45:51 2010 -0400

    move the g_free() from the last commit down
    
    It is needed for the error message...

 glib/gvariant-parser.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/glib/gvariant-parser.c b/glib/gvariant-parser.c
index d02775a..3379c4c 100644
--- a/glib/gvariant-parser.c
+++ b/glib/gvariant-parser.c
@@ -630,7 +630,6 @@ ast_array_get_pattern (AST    **array,
       merged = pattern_coalesce (pattern, tmp);
       g_free (pattern);
       pattern = merged;
-      g_free (tmp);
 
       if (merged == NULL)
         /* set coalescence implies pairwise coalescence (i think).
@@ -669,7 +668,10 @@ ast_array_get_pattern (AST    **array,
 
               j++;
             }
+
         }
+
+      g_free (tmp);
     }
 
   return pattern;



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