diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2012-08-05 14:34:00 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2012-08-06 14:07:16 +0200 |
commit | 63777c8847eedd973ca4e62a1a3cd1179dd9e63e (patch) | |
tree | 1df597bd89eedf9cba9699ab55c99e8553d27d38 | |
parent | 8acf501687f3a406e8779871c306ba2ad76a440b (diff) | |
download | mupdf-63777c8847eedd973ca4e62a1a3cd1179dd9e63e.tar.xz |
Free entire type3 font descriptor upon loding error, not just the font
-rw-r--r-- | pdf/pdf_type3.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pdf/pdf_type3.c b/pdf/pdf_type3.c index bd60216d..aaf47872 100644 --- a/pdf/pdf_type3.c +++ b/pdf/pdf_type3.c @@ -163,8 +163,7 @@ pdf_load_type3_font(pdf_document *xref, pdf_obj *rdb, pdf_obj *dict) fz_catch(ctx) { if (fontdesc) - fz_drop_font(ctx, fontdesc->font); - fz_free(ctx, fontdesc); + pdf_drop_font(ctx, fontdesc); fz_throw(ctx, "cannot load type3 font (%d %d R)", pdf_to_num(dict), pdf_to_gen(dict)); } return fontdesc; |