summaryrefslogtreecommitdiff
path: root/source/fitz/test-device.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/test-device.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/test-device.c')
-rw-r--r--source/fitz/test-device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/fitz/test-device.c b/source/fitz/test-device.c
index 9c778ce1..919bda98 100644
--- a/source/fitz/test-device.c
+++ b/source/fitz/test-device.c
@@ -152,7 +152,7 @@ fz_test_fill_image(fz_device *dev, fz_image *image, const fz_matrix *ctm, float
{
*t->is_color = 1;
dev->hints |= FZ_IGNORE_IMAGE;
- fz_close(stream);
+ fz_drop_stream(stream);
fz_throw(ctx, FZ_ERROR_ABORT, "Page found as color; stopping interpretation");
break;
}
@@ -183,7 +183,7 @@ fz_test_fill_image(fz_device *dev, fz_image *image, const fz_matrix *ctm, float
}
fz_fin_cached_color_converter(&cc);
}
- fz_close(stream);
+ fz_drop_stream(stream);
return;
}
@@ -287,7 +287,7 @@ fz_new_test_device(fz_context *ctx, int *is_color, float threshold)
dev->fill_shade = fz_test_fill_shade;
dev->fill_image = fz_test_fill_image;
dev->fill_image_mask = fz_test_fill_image_mask;
- dev->free_user = fz_test_free;
+ dev->drop_user = fz_test_free;
*t->is_color = 0;