diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-03-26 09:30:14 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-03-28 12:49:12 +0100 |
commit | 5a72b781cb1a44951c60a2a91c8de6e0b97f03f5 (patch) | |
tree | ab97ebb10676f00df8e8bbdb7a9f3ff88438594a /source/fitz | |
parent | 812c72b261e8bd13f347ddc027dbdc843e647f77 (diff) | |
download | mupdf-5a72b781cb1a44951c60a2a91c8de6e0b97f03f5.tar.xz |
Add missing hb_lock/unlock around shaper freeing.
This was causing blocks to be free'd rather than fz_free'd.
Diffstat (limited to 'source/fitz')
-rw-r--r-- | source/fitz/font.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/fitz/font.c b/source/fitz/font.c index 385803ea..a0a659fe 100644 --- a/source/fitz/font.c +++ b/source/fitz/font.c @@ -154,7 +154,9 @@ fz_drop_font(fz_context *ctx, fz_font *font) fz_free(ctx, font->bbox_table); fz_free(ctx, font->width_table); fz_free(ctx, font->advance_cache); + hb_lock(ctx); hb_font_destroy(font->shaper); + hb_unlock(ctx); fz_free(ctx, font); } |