diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2011-10-04 19:51:51 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2011-10-04 19:51:51 +0100 |
commit | 1cc3bf432a6d94e6f8411b55ee0f591d098f2062 (patch) | |
tree | ed1d2b0a91f9357b7a7beb1ee730ad62e944c9cd /apps | |
parent | d208be26537db558edb70236ae517cea31b7ebab (diff) | |
download | mupdf-1cc3bf432a6d94e6f8411b55ee0f591d098f2062.tar.xz |
Reintroduce alloc context section.
This was removed during a previous commit to make the editing easier.
Now added back in.
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 4b76afa2..c77139ff 100644 --- a/apps/pdfclean.c +++ b/apps/pdfclean.c @@ -739,7 +739,7 @@ int main(int argc, char **argv) if (argc - fz_optind > 0) subset = 1; - ctx = fz_new_context(); + ctx = fz_new_context(&fz_alloc_default); if (ctx == NULL) die(fz_error_note(1, "failed to initialise context")); diff --git a/apps/pdfdraw.c b/apps/pdfdraw.c index af21b9ea..790c7eaa 100644 --- a/apps/pdfdraw.c +++ b/apps/pdfdraw.c @@ -352,7 +352,7 @@ int main(int argc, char **argv) if (accelerate) fz_accelerate(); - ctx = fz_new_context(); + ctx = fz_new_context(&fz_alloc_default); if (ctx == NULL) { fprintf(stderr, "Failed to init context\n"); diff --git a/apps/pdfextract.c b/apps/pdfextract.c index 5aa5fa09..bf0a74ed 100644 --- a/apps/pdfextract.c +++ b/apps/pdfextract.c @@ -207,7 +207,7 @@ int main(int argc, char **argv) infile = argv[fz_optind++]; - ctx = fz_new_context(); + ctx = fz_new_context(&fz_alloc_default); if (ctx == NULL) die(fz_error_note(1, "failed to initialise context")); diff --git a/apps/pdfshow.c b/apps/pdfshow.c index 21c3a8e1..fee20d2f 100644 --- a/apps/pdfshow.c +++ b/apps/pdfshow.c @@ -229,7 +229,7 @@ int main(int argc, char **argv) filename = argv[fz_optind++]; - ctx = fz_new_context(); + ctx = fz_new_context(&fz_alloc_default); if (ctx == NULL) die(fz_error_note(1, "failed to initialise context")); diff --git a/apps/win_main.c b/apps/win_main.c index a77347e4..3e293957 100644 --- a/apps/win_main.c +++ b/apps/win_main.c @@ -858,7 +858,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShow fz_accelerate(); - ctx = fz_new_context(/*&fz_alloc_default*/); + ctx = fz_new_context(&fz_alloc_default); if (ctx == NULL) { fprintf(stderr, "Failed to init context"); diff --git a/apps/xpsdraw.c b/apps/xpsdraw.c index 19cf600a..c91e8702 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(); + ctx = fz_new_context(&fz_alloc_default); if (ctx == NULL) { fprintf(stderr, "failed to initialise context"); |