From 99ba154018b7c4a2c47b4c7e721ffe6d9164f9f3 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 20 Sep 2011 15:50:07 +0200 Subject: Reshuffle exception context code to fit Tor's aesthetic sense. --- apps/pdfshow.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'apps/pdfshow.c') diff --git a/apps/pdfshow.c b/apps/pdfshow.c index bbb6747e..653ffff6 100644 --- a/apps/pdfshow.c +++ b/apps/pdfshow.c @@ -214,7 +214,7 @@ int main(int argc, char **argv) filename = argv[fz_optind++]; - 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")); @@ -239,9 +239,7 @@ int main(int argc, char **argv) } pdf_free_xref(xref); - fz_flush_warnings(); - fz_context_fin(ctx); - + fz_free_context(ctx); return 0; } -- cgit v1.2.3