From d4c73c65888e422f8b5d5c102ce80f4e82622bfb Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 13 Feb 2012 17:53:21 +0000 Subject: Add locking around freetype calls. We only open one instance of freetype per document. We therefore have to ensure that only 1 call to it takes place at a time. We introduce a lock for this purpose (FZ_LOCK_FREETYPE), and arrange to take/release it as required. We also update the font context so it is properly shared. --- fitz/res_store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fitz/res_store.c') diff --git a/fitz/res_store.c b/fitz/res_store.c index 379c1dc5..2af5ad34 100644 --- a/fitz/res_store.c +++ b/fitz/res_store.c @@ -435,7 +435,7 @@ fz_store_keep(fz_context *ctx) } void -fz_free_store_context(fz_context *ctx) +fz_drop_store_context(fz_context *ctx) { int refs; if (ctx == NULL || ctx->store == NULL) -- cgit v1.2.3