diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-09-21 00:11:22 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-09-21 00:11:22 +0200 |
commit | 69ed4a8f4dbfac7f2f1de925e34807e4fee3b27c (patch) | |
tree | b7f82296a259d360ce90f0826e475321d630a222 /pdf/pdf_store.c | |
parent | 99ba154018b7c4a2c47b4c7e721ffe6d9164f9f3 (diff) | |
download | mupdf-69ed4a8f4dbfac7f2f1de925e34807e4fee3b27c.tar.xz |
Don't thread ctx through safe fz_obj functions.
Diffstat (limited to 'pdf/pdf_store.c')
-rw-r--r-- | pdf/pdf_store.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pdf/pdf_store.c b/pdf/pdf_store.c index 346afc5d..c8b8ba1c 100644 --- a/pdf/pdf_store.c +++ b/pdf/pdf_store.c @@ -120,7 +120,7 @@ pdf_remove_item(fz_context *ctx, pdf_store *store, pdf_store_drop_fn *drop_func, { fz_hash_remove(store->hash, &refkey); item->drop_func(ctx, item->val); - fz_drop_obj(ctx, item->key); + fz_drop_obj(item->key); fz_free(ctx, item); } } @@ -137,7 +137,7 @@ pdf_remove_item(fz_context *ctx, pdf_store *store, pdf_store_drop_fn *drop_func, else prev->next = next; item->drop_func(ctx, item->val); - fz_drop_obj(ctx, item->key); + fz_drop_obj(item->key); fz_free(ctx, item); } else @@ -162,7 +162,7 @@ pdf_age_store(fz_context *ctx, pdf_store *store, int maxage) { fz_hash_remove(store->hash, refkey); item->drop_func(ctx, item->val); - fz_drop_obj(ctx, item->key); + fz_drop_obj(item->key); fz_free(ctx, item); i--; /* items with same hash may move into place */ } @@ -179,7 +179,7 @@ pdf_age_store(fz_context *ctx, pdf_store *store, int maxage) else prev->next = next; item->drop_func(ctx, item->val); - fz_drop_obj(ctx, item->key); + fz_drop_obj(item->key); fz_free(ctx, item); } else @@ -218,7 +218,7 @@ pdf_debug_store(fz_context *ctx, pdf_store *store) { next = item->next; printf("store[*] "); - fz_debug_obj(ctx, item->key); + fz_debug_obj(item->key); printf(" = %p\n", item->val); } } |