summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2017-03-25 17:39:04 -0400
committerRobin Watts <Robin.Watts@artifex.com>2017-03-25 17:40:55 -0400
commitd3087bb261de53557572a49458a2ae88a2d38453 (patch)
tree4d33583072ab386de7d306c8502bd4f9acdcc999 /source/fitz
parenta78618eae9d21783a17858ad7f0ea5ba21f39e90 (diff)
downloadmupdf-d3087bb261de53557572a49458a2ae88a2d38453.tar.xz
Add fz_storable_needs_reaping.
Avoids needing to access the internals of reference counting.
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/image.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/fitz/image.c b/source/fitz/image.c
index 9e7717d6..0906d9ad 100644
--- a/source/fitz/image.c
+++ b/source/fitz/image.c
@@ -92,9 +92,8 @@ static int
fz_needs_reap_image_key(fz_context *ctx, void *key_)
{
fz_image_key *key = (fz_image_key *)key_;
- fz_key_storable *ks = &key->image->key_storable;
- return (ks->store_key_refs == ks->storable.refs);
+ return fz_key_storable_needs_reaping(ctx, &key->image->key_storable);
}
static const fz_store_type fz_image_store_type =