From ce82537df9e4b832213138d942be4482418b9e50 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sat, 15 Oct 2016 01:55:05 +0800 Subject: All external drop functions handles NULL. --- source/html/html-font.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/html/html-font.c') diff --git a/source/html/html-font.c b/source/html/html-font.c index 01ec10f5..48c04b73 100644 --- a/source/html/html-font.c +++ b/source/html/html-font.c @@ -86,6 +86,9 @@ void fz_drop_html_font_set(fz_context *ctx, fz_html_font_set *set) fz_html_font_face *font, *next; int i; + if (!set) + return; + font = set->custom; while (font) { -- cgit v1.2.3