summaryrefslogtreecommitdiff
path: root/source/cbz/mutiff.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-04-15 14:10:33 +0100
committerRobin Watts <robin.watts@artifex.com>2016-04-26 15:13:08 +0100
commit26f4d19a9a575eb44a6fac44c3a991beee8b589d (patch)
treeb9c9a8c42e794db77a3208dd99fce732beead280 /source/cbz/mutiff.c
parenta2fc54fe202624b7f82662eb9ca04c718d886718 (diff)
downloadmupdf-26f4d19a9a575eb44a6fac44c3a991beee8b589d.tar.xz
Improve fz_new_document
Use a macro to make fz_new_document nicer (akin to fz_malloc_struct).
Diffstat (limited to 'source/cbz/mutiff.c')
-rw-r--r--source/cbz/mutiff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cbz/mutiff.c b/source/cbz/mutiff.c
index 2dcf4e5b..57e90ea3 100644
--- a/source/cbz/mutiff.c
+++ b/source/cbz/mutiff.c
@@ -119,7 +119,7 @@ tiff_open_document_with_stream(fz_context *ctx, fz_stream *file)
{
tiff_document *doc;
- doc = fz_new_document(ctx, sizeof *doc);
+ doc = fz_new_document(ctx, tiff_document);
doc->super.close = (fz_document_close_fn *)tiff_close_document;
doc->super.count_pages = (fz_document_count_pages_fn *)tiff_count_pages;