diff options
-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; |