summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/fitz/font.c2
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);
}