diff options
author | Robin Watts <robin.watts@artifex.com> | 2011-12-15 00:43:54 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2011-12-15 00:43:54 +0000 |
commit | ba4cca2c65677aeffb088117169abbc12ebec3fc (patch) | |
tree | 08379a140cd14f2164114d43a722fabf111a0fff /apps | |
parent | 313e8f82816c839b3de47e1137a91414bb95a327 (diff) | |
download | mupdf-ba4cca2c65677aeffb088117169abbc12ebec3fc.tar.xz |
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.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/pdfclean.c | 2 | ||||
-rw-r--r-- | apps/pdfdraw.c | 2 | ||||
-rw-r--r-- | apps/pdfextract.c | 2 | ||||
-rw-r--r-- | apps/pdfshow.c | 2 | ||||
-rw-r--r-- | apps/win_main.c | 2 | ||||
-rw-r--r-- | apps/xpsdraw.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/apps/pdfclean.c b/apps/pdfclean.c index e8c27359..37381306 100644 --- a/apps/pdfclean.c +++ b/apps/pdfclean.c @@ -767,7 +767,7 @@ int main(int argc, char **argv) if (argc - fz_optind > 0) subset = 1; - 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"); diff --git a/apps/pdfdraw.c b/apps/pdfdraw.c index af1d5ad7..f7867bf0 100644 --- a/apps/pdfdraw.c +++ b/apps/pdfdraw.c @@ -362,7 +362,7 @@ int main(int argc, char **argv) if (accelerate) fz_accelerate(); - 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"); 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"); diff --git a/apps/pdfshow.c b/apps/pdfshow.c index 0c3feaf2..3f142264 100644 --- a/apps/pdfshow.c +++ b/apps/pdfshow.c @@ -189,7 +189,7 @@ int main(int argc, char **argv) filename = 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"); diff --git a/apps/win_main.c b/apps/win_main.c index 0af83aec..7223f4e6 100644 --- a/apps/win_main.c +++ b/apps/win_main.c @@ -831,7 +831,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShow fz_accelerate(); - 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"); diff --git a/apps/xpsdraw.c b/apps/xpsdraw.c index f583057e..f8828f7e 100644 --- a/apps/xpsdraw.c +++ b/apps/xpsdraw.c @@ -314,7 +314,7 @@ int main(int argc, char **argv) if (accelerate) fz_accelerate(); - 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"); |