From 71e2d0c7899e789a4f43c58ec466aaee3f46f57e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 17 Feb 2023 18:32:14 -0500 Subject: Fix compiler warnings --- pango/pango-utils.c | 10 ++++------ 1 file 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); } } -- cgit v1.2.1