summaryrefslogtreecommitdiff
path: root/source/fitz/load-tiff.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/load-tiff.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/load-tiff.c')
-rw-r--r--source/fitz/load-tiff.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/fitz/load-tiff.c b/source/fitz/load-tiff.c
index 671e5146..77fb816d 100644
--- a/source/fitz/load-tiff.c
+++ b/source/fitz/load-tiff.c
@@ -145,7 +145,7 @@ static void
fz_decode_tiff_uncompressed(struct tiff *tiff, fz_stream *stm, unsigned char *wp, int wlen)
{
fz_read(stm, wp, wlen);
- fz_close(stm);
+ fz_drop_stream(stm);
}
static void
@@ -153,7 +153,7 @@ fz_decode_tiff_packbits(struct tiff *tiff, fz_stream *chain, unsigned char *wp,
{
fz_stream *stm = fz_open_rld(chain);
fz_read(stm, wp, wlen);
- fz_close(stm);
+ fz_drop_stream(stm);
}
static void
@@ -161,7 +161,7 @@ fz_decode_tiff_lzw(struct tiff *tiff, fz_stream *chain, unsigned char *wp, int w
{
fz_stream *stm = fz_open_lzwd(chain, 1);
fz_read(stm, wp, wlen);
- fz_close(stm);
+ fz_drop_stream(stm);
}
static void
@@ -169,7 +169,7 @@ fz_decode_tiff_flate(struct tiff *tiff, fz_stream *chain, unsigned char *wp, int
{
fz_stream *stm = fz_open_flated(chain, 15);
fz_read(stm, wp, wlen);
- fz_close(stm);
+ fz_drop_stream(stm);
}
static void
@@ -183,7 +183,7 @@ fz_decode_tiff_fax(struct tiff *tiff, int comp, fz_stream *chain, unsigned char
k, 0, encoded_byte_align,
tiff->imagewidth, tiff->imagelength, 0, black_is_1);
fz_read(stm, wp, wlen);
- fz_close(stm);
+ fz_drop_stream(stm);
}
static void
@@ -198,7 +198,7 @@ fz_decode_tiff_jpeg(struct tiff *tiff, fz_stream *chain, unsigned char *wp, int
color_transform = 0;
stm = fz_open_dctd(chain, color_transform, 0, jpegtables);
fz_read(stm, wp, wlen);
- fz_close(stm);
+ fz_drop_stream(stm);
}
static inline int getcomp(unsigned char *line, int x, int bpc)