summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--content/urldb.c2
-rw-r--r--desktop/history_core.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/content/urldb.c b/content/urldb.c
index e127db8b4..295be9b2b 100644
--- a/content/urldb.c
+++ b/content/urldb.c
@@ -1067,7 +1067,7 @@ void urldb_set_thumbnail(const char *url, struct bitmap *bitmap)
if (!p)
return;
- if (p->thumb)
+ if (p->thumb && p->thumb != bitmap)
bitmap_destroy(p->thumb);
p->thumb = bitmap;
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)