From b4fa5f3fcf81f4cdfb570314069640611b618a8a Mon Sep 17 00:00:00 2001 From: James Willcox Date: Thu, 13 Feb 2003 17:11:06 +0000 Subject: Fix a heap corruption bug that was causing bad stuff when smart bookmarks 2003-02-12 James Willcox * 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 --- src/bookmarks/ephy-bookmark-action.c | 1 - src/bookmarks/ephy-bookmarks.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src/bookmarks') 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); -- cgit v1.2.3