summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2011-12-15 18:39:05 +0000
committerRobin Watts <robin.watts@artifex.com>2011-12-15 18:39:05 +0000
commit3031a2480fe775df825de6674495d01ae2607d93 (patch)
tree27f6c74c83f4e5b691808963ec2e9e2d6d9e0fba /apps
parent0519485956749c2c84fd91e067f0b6cabd026ad7 (diff)
downloadmupdf-3031a2480fe775df825de6674495d01ae2607d93.tar.xz
Fix warnings/errors on unix builds.
Fix warnings/errors thrown up by the last few commits (which were only tested on windows).
Diffstat (limited to 'apps')
-rw-r--r--apps/pdfinfo.c8
-rw-r--r--apps/x11_main.c2
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");