summaryrefslogtreecommitdiff
path: root/desktop/history_core.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-02-18 13:25:57 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-02-18 13:25:57 +0000
commitae781b4fd8d205caf108fbf56f0e32171db8ea40 (patch)
tree2694f38c7fe0b8d0338a02d7c70c61ab5a05a191 /desktop/history_core.c
parent15d7987723656f12c77426b46cf9ce3a6cd37673 (diff)
downloadnetsurf-ae781b4fd8d205caf108fbf56f0e32171db8ea40.tar.gz
netsurf-ae781b4fd8d205caf108fbf56f0e32171db8ea40.tar.bz2
Destroy bitmap if thumbnailing fails.
Make amiga port's thumbnail_create() actually return something svn path=/trunk/netsurf/; revision=6560
Diffstat (limited to 'desktop/history_core.c')
-rw-r--r--desktop/history_core.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/desktop/history_core.c b/desktop/history_core.c
index bcc6fc190..97ec9b5f2 100644
--- a/desktop/history_core.c
+++ b/desktop/history_core.c
@@ -281,7 +281,11 @@ void history_add(struct history *history, struct content *content,
warn_user("NoMemory", 0);
return;
}
- thumbnail_create(content, bitmap, url);
+ if (thumbnail_create(content, bitmap, url) == false) {
+ /* Thumbnailing failed. Ignore it silently */
+ bitmap_destroy(bitmap);
+ bitmap = NULL;
+ }
}
entry->bitmap = bitmap;