summaryrefslogtreecommitdiff
path: root/source/cbz/mucbz.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/cbz/mucbz.c')
-rw-r--r--source/cbz/mucbz.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cbz/mucbz.c b/source/cbz/mucbz.c
index 33aac13c..53ad5938 100644
--- a/source/cbz/mucbz.c
+++ b/source/cbz/mucbz.c
@@ -165,7 +165,7 @@ cbz_load_page(fz_context *ctx, cbz_document *doc, int number)
fz_try(ctx)
{
- page = fz_new_page(ctx, cbz_page);
+ page = fz_new_derived_page(ctx, cbz_page);
page->super.bound_page = (fz_page_bound_page_fn *)cbz_bound_page;
page->super.run_page_contents = (fz_page_run_page_contents_fn *)cbz_run_page;
page->super.drop_page = (fz_page_drop_page_fn *)cbz_drop_page;
@@ -197,7 +197,7 @@ cbz_open_document_with_stream(fz_context *ctx, fz_stream *file)
{
cbz_document *doc;
- doc = fz_new_document(ctx, cbz_document);
+ doc = fz_new_derived_document(ctx, cbz_document);
doc->super.drop_document = (fz_document_drop_fn *)cbz_drop_document;
doc->super.count_pages = (fz_document_count_pages_fn *)cbz_count_pages;