aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
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')
-rw-r--r--src/bookmarks/ephy-bookmark-action.c1
-rw-r--r--src/bookmarks/ephy-bookmarks.c3
2 files changed, 1 insertions, 3 deletions
diff --git a/src/bookmarks/ephy-bookmark-action.c b/src/bookmarks/ephy-bookmark-action.c
index 1352baf26..8039ca42b 100644
--- a/src/bookmarks/ephy-bookmark-action.c
+++ b/src/bookmarks/ephy-bookmark-action.c
@@ -196,7 +196,6 @@ entry_activated_cb (GtkWidget *entry, EggAction *action)
0, solved);
g_free (text);
- g_free (smart_url);
}
static void
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);