From 008fa0294df03b23a47716277d42a386396f9b25 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 12 Feb 2003 22:33:29 +0000 Subject: Use g_string_free in the correct way 2003-02-12 Marco Pesenti Gritti * lib/widgets/ephy-ellipsizing-label.c: (ellipsize_string): * lib/widgets/ephy-toolbars-group.c: (ephy_toolbars_group_to_string): Use g_string_free in the correct way --- lib/widgets/ephy-ellipsizing-label.c | 4 ++-- lib/widgets/ephy-toolbars-group.c | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/widgets/ephy-ellipsizing-label.c b/lib/widgets/ephy-ellipsizing-label.c index 13f911078..852d9e182 100644 --- a/lib/widgets/ephy-ellipsizing-label.c +++ b/lib/widgets/ephy-ellipsizing-label.c @@ -331,8 +331,8 @@ ellipsize_string (const char *string, g_utf8_strlen (string, -1)); } - result = str->str; - g_string_free (str, FALSE); + result = g_string_free (str, FALSE); + return result; } diff --git a/lib/widgets/ephy-toolbars-group.c b/lib/widgets/ephy-toolbars-group.c index b30f6b820..8cdcfd55f 100755 --- a/lib/widgets/ephy-toolbars-group.c +++ b/lib/widgets/ephy-toolbars-group.c @@ -372,9 +372,7 @@ ephy_toolbars_group_to_string (EphyToolbarsGroup *t) } g_string_append (s, ""); - result = s->str; - - g_string_free (s, FALSE); + result = g_string_free (s, FALSE); return result; } -- cgit v1.2.3