aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorGustavo Noronha Silva <gns@gnome.org>2009-12-21 03:28:07 +0800
committerGustavo Noronha Silva <gns@gnome.org>2009-12-21 03:30:32 +0800
commit6a56fddb15336c68295c8bb4e6cd4f76013bd8de (patch)
tree89f9921ad4cc6a690d95528ceb8b2b004a6e08e2 /embed
parentf92beb1e7a5158d0caa505c1df4363fc98fdcfb8 (diff)
downloadgsoc2013-epiphany-6a56fddb15336c68295c8bb4e6cd4f76013bd8de.tar
gsoc2013-epiphany-6a56fddb15336c68295c8bb4e6cd4f76013bd8de.tar.gz
gsoc2013-epiphany-6a56fddb15336c68295c8bb4e6cd4f76013bd8de.tar.bz2
gsoc2013-epiphany-6a56fddb15336c68295c8bb4e6cd4f76013bd8de.tar.lz
gsoc2013-epiphany-6a56fddb15336c68295c8bb4e6cd4f76013bd8de.tar.xz
gsoc2013-epiphany-6a56fddb15336c68295c8bb4e6cd4f76013bd8de.tar.zst
gsoc2013-epiphany-6a56fddb15336c68295c8bb4e6cd4f76013bd8de.zip
Copy WebKitWebHistoryItem objects
This is so that changes to the item objects do not affect other WebViews.
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-web-view.c3
1 files changed, 2 insertions, 1 deletions
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);