diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-02-13 17:53:21 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-02-13 22:05:12 +0000 |
commit | d4c73c65888e422f8b5d5c102ce80f4e82622bfb (patch) | |
tree | f9879093e06204e8e85842996dab3a91bd3df0e9 /fitz/res_store.c | |
parent | e9c534aee18fa86a61decb9f7c17b3d28ead94dc (diff) | |
download | mupdf-d4c73c65888e422f8b5d5c102ce80f4e82622bfb.tar.xz |
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.
Diffstat (limited to 'fitz/res_store.c')
-rw-r--r-- | fitz/res_store.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |