diff options
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r-- | embed/ephy-web-view.c | 3 |
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); |