From 6a56fddb15336c68295c8bb4e6cd4f76013bd8de Mon Sep 17 00:00:00 2001 From: Gustavo Noronha Silva Date: Sun, 20 Dec 2009 20:28:07 +0100 Subject: Copy WebKitWebHistoryItem objects This is so that changes to the item objects do not affect other WebViews. --- embed/ephy-web-view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'embed') diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index 8ddfaa8df..1a9ce6439 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -2145,8 +2145,9 @@ ephy_web_view_copy_back_history (EphyWebView *source, history ends up the same */ items = g_list_reverse (items); for (; items; items = items->next) { - item = (WebKitWebHistoryItem*)items->data; + item = webkit_web_history_item_copy ((WebKitWebHistoryItem*)items->data); webkit_web_back_forward_list_add_item (dest_bflist, item); + g_object_unref (item); } g_list_free (items); -- cgit