diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2017-03-21 15:53:01 -0400 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2017-03-22 18:29:42 -0400 |
commit | 546e1fce1b1556f56860a46f326094b997a3237c (patch) | |
tree | 1bdf70ae60a0a84daa1a6e37e3cc04d612e38b49 /source/pdf | |
parent | ad65190db33e7024b71cd21a6ea1483940f0bf92 (diff) | |
download | mupdf-546e1fce1b1556f56860a46f326094b997a3237c.tar.xz |
Update fz_new_page.
Move this into the same style as fz_new_document and
fz_new_image.
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-page.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-page.c b/source/pdf/pdf-page.c index 0699c672..1eec063c 100644 --- a/source/pdf/pdf-page.c +++ b/source/pdf/pdf-page.c @@ -649,7 +649,7 @@ pdf_drop_page_imp(fz_context *ctx, pdf_page *page) static pdf_page * pdf_new_page(fz_context *ctx, pdf_document *doc) { - pdf_page *page = fz_new_page(ctx, sizeof(*page)); + pdf_page *page = fz_new_page(ctx, pdf_page); page->doc = (pdf_document*) fz_keep_document(ctx, &doc->super); |