summaryrefslogtreecommitdiff
path: root/source/html
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-10-15 01:55:05 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-10-18 21:32:14 +0800
commitce82537df9e4b832213138d942be4482418b9e50 (patch)
tree77745cba1b3c7ffaca9db4876e20993fc0495801 /source/html
parent23ac569165b66403abfe72e89007675ceaa9bde0 (diff)
downloadmupdf-ce82537df9e4b832213138d942be4482418b9e50.tar.xz
All external drop functions handles NULL.
Diffstat (limited to 'source/html')
-rw-r--r--source/html/html-font.c3
1 files changed, 3 insertions, 0 deletions
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)
{