diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2017-03-24 17:24:45 -0400 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2017-03-24 17:26:27 -0400 |
commit | a78618eae9d21783a17858ad7f0ea5ba21f39e90 (patch) | |
tree | f32096a1e95de770045232ab2c0a26c69532c38d /include | |
parent | a22a4994fd5ca4dcf20170f88a5b7fe1a5df49c4 (diff) | |
download | mupdf-a78618eae9d21783a17858ad7f0ea5ba21f39e90.tar.xz |
Fix needs_reap entry in key storable.
There is no need to hold a separate flag to say that
we need reaping, when this can be implied from the
store_key_refs and the normal refcount being equal.
In addition, I don't think we were ever actually
setting this, so the code was wrong to start with.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/store.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/mupdf/fitz/store.h b/include/mupdf/fitz/store.h index d637b1cc..65b041f3 100644 --- a/include/mupdf/fitz/store.h +++ b/include/mupdf/fitz/store.h @@ -39,7 +39,6 @@ struct fz_storable_s { struct fz_key_storable_s { fz_storable storable; short store_key_refs; - unsigned short needs_reaping; }; #define FZ_INIT_STORABLE(S_,RC,DROP) \ @@ -49,7 +48,7 @@ struct fz_key_storable_s { #define FZ_INIT_KEY_STORABLE(KS_,RC,DROP) \ do { fz_key_storable *KS = &(KS_)->key_storable; KS->store_key_refs = 0;\ - KS->needs_reaping = 0; FZ_INIT_STORABLE(KS,RC,DROP); \ + FZ_INIT_STORABLE(KS,RC,DROP); \ } while (0) void *fz_keep_storable(fz_context *, const fz_storable *); |