From 1cc3bf432a6d94e6f8411b55ee0f591d098f2062 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 4 Oct 2011 19:51:51 +0100 Subject: Reintroduce alloc context section. This was removed during a previous commit to make the editing easier. Now added back in. --- apps/pdfclean.c | 2 +- apps/pdfdraw.c | 2 +- apps/pdfextract.c | 2 +- apps/pdfshow.c | 2 +- apps/win_main.c | 2 +- apps/xpsdraw.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'apps') 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"); -- cgit v1.2.3