summaryrefslogtreecommitdiff
path: root/source/html
diff options
context:
space:
mode:
Diffstat (limited to 'source/html')
-rw-r--r--source/html/html-doc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/html/html-doc.c b/source/html/html-doc.c
index 6ad5c3e8..23f1195b 100644
--- a/source/html/html-doc.c
+++ b/source/html/html-doc.c
@@ -144,7 +144,7 @@ htdoc_open_document(fz_context *ctx, const char *filename)
fz_dirname(dirname, filename, sizeof dirname);
- doc = fz_malloc_struct(ctx, html_document);
+ doc = fz_new_document(ctx, sizeof *doc);
doc->super.close = htdoc_close_document;
doc->super.layout = htdoc_layout;
doc->super.count_pages = htdoc_count_pages;