diff options
Diffstat (limited to 'source/cbz')
-rw-r--r-- | source/cbz/mucbz.c | 2 | ||||
-rw-r--r-- | source/cbz/muimg.c | 2 | ||||
-rw-r--r-- | source/cbz/mutiff.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/source/cbz/mucbz.c b/source/cbz/mucbz.c index af955a27..2cbe3a80 100644 --- a/source/cbz/mucbz.c +++ b/source/cbz/mucbz.c @@ -197,7 +197,7 @@ cbz_lookup_metadata(fz_context *ctx, cbz_document *doc, const char *key, char *b static cbz_document * cbz_open_document_with_stream(fz_context *ctx, fz_stream *file) { - cbz_document *doc = fz_new_document(ctx, sizeof *doc); + cbz_document *doc = fz_new_document(ctx, cbz_document); doc->super.close = (fz_document_close_fn *)cbz_close_document; doc->super.count_pages = (fz_document_count_pages_fn *)cbz_count_pages; diff --git a/source/cbz/muimg.c b/source/cbz/muimg.c index f200480e..41831cdf 100644 --- a/source/cbz/muimg.c +++ b/source/cbz/muimg.c @@ -92,7 +92,7 @@ img_lookup_metadata(fz_context *ctx, img_document *doc, const char *key, char *b static img_document * img_new_document(fz_context *ctx, fz_image *image) { - img_document *doc = fz_new_document(ctx, sizeof *doc); + img_document *doc = fz_new_document(ctx, img_document); doc->super.close = (fz_document_close_fn *)img_close_document; doc->super.count_pages = (fz_document_count_pages_fn *)img_count_pages; 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; |