summaryrefslogtreecommitdiff
path: root/pango/pango-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pango-utils.c')
-rw-r--r--pango/pango-utils.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/pango/pango-utils.c b/pango/pango-utils.c
index 7c85b0aa..a78dcd35 100644
--- a/pango/pango-utils.c
+++ b/pango/pango-utils.c
@@ -749,9 +749,9 @@ _pango_parse_enum (GType type,
s->str);
if (possible_values)
- *possible_values = s->str;
-
- g_string_free (s, possible_values ? FALSE : TRUE);
+ *possible_values = g_string_free (s, FALSE);
+ else
+ g_string_free (s, TRUE);
}
}
@@ -811,9 +811,7 @@ pango_parse_flags (GType type,
g_string_append (s, v->value_nick);
}
- *possible_values = s->str;
-
- g_string_free (s, FALSE);
+ *possible_values = g_string_free (s, FALSE);
}
}