From b229c41e9c48af93d7faaa8b033754f71237fe5a Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 7 Apr 2007 20:30:39 +0000 Subject: 1) Fix corruption of history data structure on cloning 2) Only destroy urldb's thumbnail bitmap if it's not the same as the new one. This needs revisiting at a later date such that the mess surrounding who owns bitmap objects is sorted (and so that urldb doesn't need to know about bitmaps) svn path=/trunk/netsurf/; revision=3243 --- desktop/history_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop/history_core.c') diff --git a/desktop/history_core.c b/desktop/history_core.c index b7d71c80e..0e7049dbe 100644 --- a/desktop/history_core.c +++ b/desktop/history_core.c @@ -124,7 +124,7 @@ struct history *history_clone(struct history *history) new_history->start = history_clone_entry(new_history, new_history->start); if (!history->start) { - LOG(("Insufficient memory to clone history")); + LOG(("Insufficient memory to clone history")); warn_user("NoMemory", 0); history_destroy(new_history); return 0; @@ -178,7 +178,7 @@ struct history_entry *history_clone_entry(struct history *history, for (child = new_entry->forward; child; child = child->next) { new_child = history_clone_entry(history, child); if (new_child) - new_child->back = entry; + new_child->back = new_entry; if (prev) prev->next = new_child; if (new_entry->forward == child) -- cgit v1.2.3