From: Ryan Lortie Date: Sat, 10 Jul 2010 21:45:51 +0000 (-0400) Subject: move the g_free() from the last commit down X-Git-Tag: 2.25.11~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90c49a0654f4aa556f3d2ccb7c91b6e480eef1ae;p=platform%2Fupstream%2Fglib.git move the g_free() from the last commit down It is needed for the error message... --- 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;