summaryrefslogtreecommitdiff
path: root/fitz/base_context.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2011-12-15 00:43:54 +0000
committerRobin Watts <robin.watts@artifex.com>2011-12-15 00:43:54 +0000
commitba4cca2c65677aeffb088117169abbc12ebec3fc (patch)
tree08379a140cd14f2164114d43a722fabf111a0fff /fitz/base_context.c
parent313e8f82816c839b3de47e1137a91414bb95a327 (diff)
downloadmupdf-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 'fitz/base_context.c')
-rw-r--r--fitz/base_context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fitz/base_context.c b/fitz/base_context.c
index e722aa1d..ee92904b 100644
--- a/fitz/base_context.c
+++ b/fitz/base_context.c
@@ -76,5 +76,6 @@ cleanup:
fz_context *
fz_clone_context(fz_context *ctx)
{
- return fz_new_context(ctx->alloc, FZ_STORE_UNLIMITED);
+ /* FIXME: Should be sharing store */
+ return fz_new_context(ctx->alloc, 256<<20);
}