[gs-commits] mupdf 1.16.1.88 Fix fix for store behaviour when oversize
[email protected] (Robin Watts) Wed, 9 Oct 2019 17:24:01 +0000 (UTC)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 0942e8d3ca7358c97182b3fee32a4bdfece3ea77 Author: Tor Andersson <[email protected]> Date: Tue Oct 8 00:26:37 2019 +0200 Fix fix for store behaviour when oversized, but using an unlimited store. diff --git a/source/fitz/store.c b/source/fitz/store.c index 77432c3..677176e 100644 --- a/source/fitz/store.c +++ b/source/fitz/store.c @@ -858,8 +858,9 @@ fz_drop_storable(fz_context *ctx, const fz_storable *sc) * oversized, we ought to throw any such references * away to try to bring the store down to a "legal" * size. Run a scavenge to check for this case. */ - if (num == 1 && ctx->store->size > ctx->store->max) - scavenge(ctx, ctx->store->size - ctx->store->max); + if (ctx->store->max != FZ_STORE_UNLIMITED) + if (num == 1 && ctx->store->size > ctx->store->max) + scavenge(ctx, ctx->store->size - ctx->store->max); fz_unlock(ctx, FZ_LOCK_ALLOC); /* If we have no references to an object left, then http://git.ghostscript.com/?p=mupdf.git;a=commit;h=0942e8d3ca7358c97182b3fee32a4bdfece3ea77 -- MuPDF library Artifex Software, Inc.