summaryrefslogtreecommitdiff
path: root/apps/xpsdraw.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/xpsdraw.c')
-rw-r--r--apps/xpsdraw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/xpsdraw.c b/apps/xpsdraw.c
index 8283216a..719719ea 100644
--- a/apps/xpsdraw.c
+++ b/apps/xpsdraw.c
@@ -311,7 +311,7 @@ int main(int argc, char **argv)
if (accelerate)
fz_accelerate();
- fzctx = fz_context_init(&fz_alloc_default);
+ fzctx = fz_new_context(&fz_alloc_default);
if (fzctx == NULL)
{
fprintf(stderr, "failed to initialise context");
@@ -369,7 +369,7 @@ int main(int argc, char **argv)
}
fz_free_glyph_cache(fzctx, glyphcache);
- fz_context_fin(fzctx);
+ fz_free_context(fzctx);
return 0;
}