diff options
-rw-r--r-- | mupdf/pdf_type3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mupdf/pdf_type3.c b/mupdf/pdf_type3.c index 66537d2d..a4e1fa49 100644 --- a/mupdf/pdf_type3.c +++ b/mupdf/pdf_type3.c @@ -313,7 +313,8 @@ pdf_loadtype3font(pdf_font **fontp, pdf_xref *xref, fz_obj *dict, fz_obj *ref) return nil; cleanup2: - fz_dropobj(resources); + if (resources) + fz_dropobj(resources); cleanup: fz_dropfont((fz_font*)font); return fz_rethrow(error, "cannot load type3 font"); |