aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-bookmarks.c
diff options
context:
space:
mode:
authorJames Willcox <jwillcox@gnome.org>2003-02-14 01:11:06 +0800
committerJames Willcox <jwillcox@src.gnome.org>2003-02-14 01:11:06 +0800
commitb4fa5f3fcf81f4cdfb570314069640611b618a8a (patch)
tree35fea28967e185a17e509cf321096fd1911cfe05 /src/bookmarks/ephy-bookmarks.c
parent52592b0c39f41b4b22a97bf56f16b9d28a1c7b01 (diff)
downloadgsoc2013-epiphany-b4fa5f3fcf81f4cdfb570314069640611b618a8a.tar
gsoc2013-epiphany-b4fa5f3fcf81f4cdfb570314069640611b618a8a.tar.gz
gsoc2013-epiphany-b4fa5f3fcf81f4cdfb570314069640611b618a8a.tar.bz2
gsoc2013-epiphany-b4fa5f3fcf81f4cdfb570314069640611b618a8a.tar.lz
gsoc2013-epiphany-b4fa5f3fcf81f4cdfb570314069640611b618a8a.tar.xz
gsoc2013-epiphany-b4fa5f3fcf81f4cdfb570314069640611b618a8a.tar.zst
gsoc2013-epiphany-b4fa5f3fcf81f4cdfb570314069640611b618a8a.zip
Fix a heap corruption bug that was causing bad stuff when smart bookmarks
2003-02-12 James Willcox <jwillcox@gnome.org> * src/bookmarks/ephy-bookmark-action.c: (entry_activated_cb): * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_solve_smart_url): Fix a heap corruption bug that was causing bad stuff when smart bookmarks were used from the toolbar. Fixes #105180
Diffstat (limited to 'src/bookmarks/ephy-bookmarks.c')
-rw-r--r--src/bookmarks/ephy-bookmarks.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bookmarks/ephy-bookmarks.c b/src/bookmarks/ephy-bookmarks.c
index 46d3066c1..3b45599f6 100644
--- a/src/bookmarks/ephy-bookmarks.c
+++ b/src/bookmarks/ephy-bookmarks.c
@@ -781,8 +781,7 @@ ephy_bookmarks_solve_smart_url (EphyBookmarks *eb,
g_string_append (s, arg);
t1 = t2 + 2;
g_string_append (s, t1);
- ret = s->str;
- g_string_free (s, FALSE);
+ ret = g_string_free (s, FALSE);
g_free (arg);
g_free (encoding);