From 3031a2480fe775df825de6674495d01ae2607d93 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 15 Dec 2011 18:39:05 +0000 Subject: Fix warnings/errors on unix builds. Fix warnings/errors thrown up by the last few commits (which were only tested on windows). --- apps/pdfinfo.c | 8 +------- apps/x11_main.c | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'apps') 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"); -- cgit v1.2.3