From 5a72b781cb1a44951c60a2a91c8de6e0b97f03f5 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Sat, 26 Mar 2016 09:30:14 +0000 Subject: Add missing hb_lock/unlock around shaper freeing. This was causing blocks to be free'd rather than fz_free'd. --- source/fitz/font.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/fitz') 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); } -- cgit v1.2.3