summaryrefslogtreecommitdiff
path: root/source/fitz/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/image.c')
-rw-r--r--source/fitz/image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/fitz/image.c b/source/fitz/image.c
index 3b0a93d6..9e7717d6 100644
--- a/source/fitz/image.c
+++ b/source/fitz/image.c
@@ -92,8 +92,9 @@ 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 (key->image->key_storable.needs_reaping);
+ return (ks->store_key_refs == ks->storable.refs);
}
static const fz_store_type fz_image_store_type =