From ba4cca2c65677aeffb088117169abbc12ebec3fc Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 15 Dec 2011 00:43:54 +0000 Subject: Remove 'soft limit' on pixmaps in favour of fz_store. Change the fz_store to be limited to 256 Megs. Remove the soft limit for pixmaps; the store will automatically throw old resources away to stay below the limit. --- apps/pdfextract.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/pdfextract.c') diff --git a/apps/pdfextract.c b/apps/pdfextract.c index 590bf13f..5b1fca0b 100644 --- a/apps/pdfextract.c +++ b/apps/pdfextract.c @@ -178,7 +178,7 @@ int main(int argc, char **argv) infile = argv[fz_optind++]; - ctx = fz_new_context(&fz_alloc_default, FZ_STORE_UNLIMITED); + ctx = fz_new_context(&fz_alloc_default, 256<<20); if (!ctx) { fprintf(stderr, "cannot initialise context\n"); -- cgit v1.2.3