diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2015-01-20 16:42:29 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2015-02-17 16:36:10 +0100 |
commit | 681039767f2ccc72e236246178893eb0989169c9 (patch) | |
tree | 2eccad54c5b5bc964335dc97fe5b0fec8449d16e /source/fitz/unzip.c | |
parent | 76a09166ddbe5b741f54f0fd203f2135e5b532c3 (diff) | |
download | mupdf-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/unzip.c')
-rw-r--r-- | source/fitz/unzip.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/fitz/unzip.c b/source/fitz/unzip.c index f13a9ace..bafc4146 100644 --- a/source/fitz/unzip.c +++ b/source/fitz/unzip.c @@ -452,13 +452,13 @@ fz_list_archive_entry(fz_context *ctx, fz_archive *zip, int idx) } void -fz_close_archive(fz_context *ctx, fz_archive *zip) +fz_drop_archive(fz_context *ctx, fz_archive *zip) { int i; if (zip) { fz_free(ctx, zip->directory); - fz_close(zip->file); + fz_drop_stream(zip->file); for (i = 0; i < zip->count; ++i) fz_free(ctx, zip->table[i].name); fz_free(ctx, zip->table); @@ -497,7 +497,7 @@ fz_open_archive_with_stream(fz_context *ctx, fz_stream *file) } fz_catch(ctx) { - fz_close_archive(ctx, zip); + fz_drop_archive(ctx, zip); fz_rethrow(ctx); } @@ -517,7 +517,7 @@ fz_open_archive(fz_context *ctx, const char *filename) } fz_always(ctx) { - fz_close(file); + fz_drop_stream(file); } fz_catch(ctx) { |