diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/pdfinfo.c | 8 | ||||
-rw-r--r-- | apps/x11_main.c | 2 |
2 files changed, 2 insertions, 8 deletions
diff --git a/apps/pdfinfo.c b/apps/pdfinfo.c index bfa5f3b1..4dfbd461 100644 --- a/apps/pdfinfo.c +++ b/apps/pdfinfo.c @@ -148,12 +148,6 @@ void closexref(void) psobj = NULL; psobjs = 0; } - - if (xref && xref->store) - { - pdf_free_store(ctx, xref->store); - xref->store = NULL; - } } static void @@ -973,7 +967,7 @@ int main(int argc, char **argv) if (fz_optind == argc) infousage(); - ctx = fz_new_context(&fz_alloc_default); + ctx = fz_new_context(&fz_alloc_default, 256<<20); if (!ctx) { fprintf(stderr, "cannot initialise context\n"); diff --git a/apps/x11_main.c b/apps/x11_main.c index 23649a57..1020350f 100644 --- a/apps/x11_main.c +++ b/apps/x11_main.c @@ -587,7 +587,7 @@ int main(int argc, char **argv) struct timeval tmo; struct timeval *timeout; - ctx = fz_new_context(&fz_alloc_default); + ctx = fz_new_context(&fz_alloc_default, 256<<20); if (!ctx) { fprintf(stderr, "cannot initialise context\n"); |