From 546e1fce1b1556f56860a46f326094b997a3237c Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 21 Mar 2017 15:53:01 -0400 Subject: Update fz_new_page. Move this into the same style as fz_new_document and fz_new_image. --- source/html/epub-doc.c | 2 +- source/html/html-doc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source/html') diff --git a/source/html/epub-doc.c b/source/html/epub-doc.c index dab46155..d443dbae 100644 --- a/source/html/epub-doc.c +++ b/source/html/epub-doc.c @@ -215,7 +215,7 @@ static fz_page * epub_load_page(fz_context *ctx, fz_document *doc_, int number) { epub_document *doc = (epub_document*)doc_; - epub_page *page = fz_new_page(ctx, sizeof *page); + epub_page *page = fz_new_page(ctx, epub_page); page->super.bound_page = epub_bound_page; page->super.run_page_contents = epub_run_page; page->super.load_links = epub_load_links; diff --git a/source/html/html-doc.c b/source/html/html-doc.c index 5802e460..d9d7d27f 100644 --- a/source/html/html-doc.c +++ b/source/html/html-doc.c @@ -115,7 +115,7 @@ static fz_page * htdoc_load_page(fz_context *ctx, fz_document *doc_, int number) { html_document *doc = (html_document*)doc_; - html_page *page = fz_new_page(ctx, sizeof *page); + html_page *page = fz_new_page(ctx, html_page); page->super.bound_page = htdoc_bound_page; page->super.run_page_contents = htdoc_run_page; page->super.load_links = htdoc_load_links; -- cgit v1.2.3