summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-03-25 20:18:16 +0000
committerRobin Watts <robin.watts@artifex.com>2013-03-25 20:18:16 +0000
commit85673f477f55443f8365bed03e314c9abc859fe2 (patch)
treeb0fedccd245c223a996cc8e79c64f807e0b41459 /fitz
parent41ba11407eddb7b9497801bbca52c2ad90a11fb7 (diff)
downloadmupdf-85673f477f55443f8365bed03e314c9abc859fe2.tar.xz
Fix error in store exception handling code.
Don't subtract the itemsize on error when we haven't added it yet.
Diffstat (limited to 'fitz')
-rw-r--r--fitz/res_store.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fitz/res_store.c b/fitz/res_store.c
index 9b96089c..42d90a0c 100644
--- a/fitz/res_store.c
+++ b/fitz/res_store.c
@@ -244,7 +244,6 @@ fz_store_item(fz_context *ctx, void *key, void *val_, unsigned int itemsize, fz_
}
fz_catch(ctx)
{
- store->size -= itemsize;
fz_unlock(ctx, FZ_LOCK_ALLOC);
fz_free(ctx, item);
type->drop_key(ctx, key);