summaryrefslogtreecommitdiff
path: root/source/fitz/context.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-01-20 16:42:29 +0100
committerTor Andersson <tor.andersson@artifex.com>2015-02-17 16:36:10 +0100
commit681039767f2ccc72e236246178893eb0989169c9 (patch)
tree2eccad54c5b5bc964335dc97fe5b0fec8449d16e /source/fitz/context.c
parent76a09166ddbe5b741f54f0fd203f2135e5b532c3 (diff)
downloadmupdf-681039767f2ccc72e236246178893eb0989169c9.tar.xz
Rename fz_close_* and fz_free_* to fz_drop_*.
Rename fz_close to fz_drop_stream. Rename fz_close_archive to fz_drop_archive. Rename fz_close_output to fz_drop_output. Rename fz_free_* to fz_drop_*. Rename pdf_free_* to pdf_drop_*. Rename xps_free_* to xps_drop_*.
Diffstat (limited to 'source/fitz/context.c')
-rw-r--r--source/fitz/context.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/fitz/context.c b/source/fitz/context.c
index 36ad879f..b3ca9b5b 100644
--- a/source/fitz/context.c
+++ b/source/fitz/context.c
@@ -43,7 +43,7 @@ fz_keep_id_context(fz_context *ctx)
}
void
-fz_free_context(fz_context *ctx)
+fz_drop_context(fz_context *ctx)
{
if (!ctx)
return;
@@ -52,7 +52,7 @@ fz_free_context(fz_context *ctx)
fz_drop_document_handler_context(ctx);
fz_drop_glyph_cache_context(ctx);
fz_drop_store_context(ctx);
- fz_free_aa_context(ctx);
+ fz_drop_aa_context(ctx);
fz_drop_colorspace_context(ctx);
fz_drop_font_context(ctx);
fz_drop_id_context(ctx);
@@ -117,7 +117,7 @@ new_context_phase1(fz_alloc_context *alloc, fz_locks_context *locks)
cleanup:
fprintf(stderr, "cannot create context (phase 1)\n");
- fz_free_context(ctx);
+ fz_drop_context(ctx);
return NULL;
}
@@ -155,7 +155,7 @@ fz_new_context_imp(fz_alloc_context *alloc, fz_locks_context *locks, unsigned in
fz_catch(ctx)
{
fprintf(stderr, "cannot create context (phase 2)\n");
- fz_free_context(ctx);
+ fz_drop_context(ctx);
return NULL;
}
return ctx;