summaryrefslogtreecommitdiff
path: root/apps/pdfclean.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-09-20 15:50:07 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-09-20 15:50:07 +0200
commit99ba154018b7c4a2c47b4c7e721ffe6d9164f9f3 (patch)
tree228cdc9d4c1af8caa3e815bc43441b0a1a551f5b /apps/pdfclean.c
parentb51ef0eea028c73b6379e832eaa34fff3fbbb927 (diff)
downloadmupdf-99ba154018b7c4a2c47b4c7e721ffe6d9164f9f3.tar.xz
Reshuffle exception context code to fit Tor's aesthetic sense.
Diffstat (limited to 'apps/pdfclean.c')
-rw-r--r--apps/pdfclean.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/pdfclean.c b/apps/pdfclean.c
index 1767ebc5..2a8c54f2 100644
--- a/apps/pdfclean.c
+++ b/apps/pdfclean.c
@@ -720,7 +720,7 @@ int main(int argc, char **argv)
if (argc - fz_optind > 0)
subset = 1;
- ctx = fz_context_init(&fz_alloc_default);
+ ctx = fz_new_context(&fz_alloc_default);
if (ctx == NULL)
die(fz_error_note(1, "failed to initialise context"));
@@ -782,9 +782,7 @@ int main(int argc, char **argv)
fz_free(xref->ctx, renumbermap);
pdf_free_xref(xref);
-
fz_flush_warnings();
- fz_context_fin(ctx);
-
+ fz_free_context(ctx);
return 0;
}