From 56482725b69b69b58f5be6b36a9ee9cd30ebcc54 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 1 May 2011 08:49:00 +0000 Subject: If a designed font is defined but not available, error out svn path=/trunk/netsurf/; revision=12265 --- amiga/font.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'amiga') diff --git a/amiga/font.c b/amiga/font.c index 0f2c3e7d9..1c517a517 100644 --- a/amiga/font.c +++ b/amiga/font.c @@ -404,6 +404,7 @@ struct OutlineFont *ami_open_outline_font(const plot_font_style_t *fstyle, BOOL if(node->italic) { node = ami_font_open(node->italic); + if(!node) return NULL; } else { @@ -416,6 +417,7 @@ struct OutlineFont *ami_open_outline_font(const plot_font_style_t *fstyle, BOOL if(node->bold) { node = ami_font_open(node->bold); + if(!node) return NULL; } else { @@ -428,6 +430,7 @@ struct OutlineFont *ami_open_outline_font(const plot_font_style_t *fstyle, BOOL if(node->bolditalic) { node = ami_font_open(node->bolditalic); + if(!node) return NULL; } else { @@ -580,6 +583,7 @@ void ami_init_fonts(void) void ami_close_fonts(void) { + LOG(("Cleaning up font cache")); FreeObjList(ami_font_list); ami_font_list = NULL; } -- cgit v1.2.3