aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-02-13 06:33:29 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-02-13 06:33:29 +0800
commit008fa0294df03b23a47716277d42a386396f9b25 (patch)
treeea163ab0c4ecb5f70f0ddc475a64f6a2b1cb409f
parentf2928d9a3b8411a189c6ba9523c20890b0772791 (diff)
downloadgsoc2013-epiphany-008fa0294df03b23a47716277d42a386396f9b25.tar
gsoc2013-epiphany-008fa0294df03b23a47716277d42a386396f9b25.tar.gz
gsoc2013-epiphany-008fa0294df03b23a47716277d42a386396f9b25.tar.bz2
gsoc2013-epiphany-008fa0294df03b23a47716277d42a386396f9b25.tar.lz
gsoc2013-epiphany-008fa0294df03b23a47716277d42a386396f9b25.tar.xz
gsoc2013-epiphany-008fa0294df03b23a47716277d42a386396f9b25.tar.zst
gsoc2013-epiphany-008fa0294df03b23a47716277d42a386396f9b25.zip
Use g_string_free in the correct way
2003-02-12 Marco Pesenti Gritti <marco@it.gnome.org> * 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
-rw-r--r--ChangeLog8
-rw-r--r--lib/widgets/ephy-ellipsizing-label.c4
-rwxr-xr-xlib/widgets/ephy-toolbars-group.c4
3 files changed, 11 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 3c622b0b6..81cb37a33 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2003-02-12 Marco Pesenti Gritti <marco@it.gnome.org>
+ * 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
+
+2003-02-12 Marco Pesenti Gritti <marco@it.gnome.org>
+
* src/bookmarks/ephy-bookmarks-editor.c:
(ephy_bookmarks_editor_dispose),
(ephy_bookmarks_editor_node_selected_cb),
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, "</Root>");
- result = s->str;
-
- g_string_free (s, FALSE);
+ result = g_string_free (s, FALSE);
return result;
}