diff options
Diffstat (limited to 'fitz/res_store.c')
-rw-r--r-- | fitz/res_store.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fitz/res_store.c b/fitz/res_store.c index 93d48272..3ee910cc 100644 --- a/fitz/res_store.c +++ b/fitz/res_store.c @@ -196,8 +196,8 @@ fz_store_item(fz_context *ctx, fz_obj *key, void *val_, unsigned int itemsize) size = store->size + itemsize; if (store->max != FZ_STORE_UNLIMITED && size > store->max && ensure_space(ctx, size - store->max)) { - fz_free(ctx, item); fz_unlock(ctx); + fz_free(ctx, item); return; } store->size += itemsize; @@ -220,8 +220,8 @@ fz_store_item(fz_context *ctx, fz_obj *key, void *val_, unsigned int itemsize) } fz_catch(ctx) { - fz_free(ctx, item); fz_unlock(ctx); + fz_free(ctx, item); return; } } |