diff options
-rwxr-xr-x | amiga/thumbnail.c | 1 | ||||
-rw-r--r-- | desktop/history_core.c | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/amiga/thumbnail.c b/amiga/thumbnail.c index 5535f76c7..ea138be65 100755 --- a/amiga/thumbnail.c +++ b/amiga/thumbnail.c @@ -21,4 +21,5 @@ bool thumbnail_create(struct content *content, struct bitmap *bitmap, const char *url) { + return false; } 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; |