summaryrefslogtreecommitdiff
path: root/apps/pdfinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/pdfinfo.c')
-rw-r--r--apps/pdfinfo.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/pdfinfo.c b/apps/pdfinfo.c
index f7ee1800..2006b0be 100644
--- a/apps/pdfinfo.c
+++ b/apps/pdfinfo.c
@@ -981,7 +981,7 @@ int main(int argc, char **argv)
if (fz_optind == argc)
infousage();
- ctx = fz_context_init(&fz_alloc_default);
+ ctx = fz_new_context(&fz_alloc_default);
if (ctx == NULL)
die(fz_error_make("failed to initialise context"));
@@ -1025,7 +1025,6 @@ int main(int argc, char **argv)
showinfo(filename, show, "1-");
closexref();
- fz_context_fin(ctx);
-
+ fz_free_context(ctx);
return 0;
}