Destroy bitmap if thumbnailing fails.
Make amiga port's thumbnail_create() actually return something svn path=/trunk/netsurf/; revision=6560
This commit is contained in:
parent
15d7987723
commit
ae781b4fd8
|
@ -21,4 +21,5 @@
|
||||||
bool thumbnail_create(struct content *content, struct bitmap *bitmap,
|
bool thumbnail_create(struct content *content, struct bitmap *bitmap,
|
||||||
const char *url)
|
const char *url)
|
||||||
{
|
{
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -281,7 +281,11 @@ void history_add(struct history *history, struct content *content,
|
||||||
warn_user("NoMemory", 0);
|
warn_user("NoMemory", 0);
|
||||||
return;
|
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;
|
entry->bitmap = bitmap;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue