From 26f4d19a9a575eb44a6fac44c3a991beee8b589d Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 15 Apr 2016 14:10:33 +0100 Subject: Improve fz_new_document Use a macro to make fz_new_document nicer (akin to fz_malloc_struct). --- source/svg/svg-doc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/svg') diff --git a/source/svg/svg-doc.c b/source/svg/svg-doc.c index d9df7a27..9b7aa670 100644 --- a/source/svg/svg-doc.c +++ b/source/svg/svg-doc.c @@ -91,7 +91,7 @@ svg_open_document_with_buffer(fz_context *ctx, fz_buffer *buf) root = fz_parse_xml(ctx, buf->data, buf->len, 0); - doc = Memento_label(fz_new_document(ctx, sizeof(svg_document)), "svg_document"); + doc = fz_new_document(ctx, svg_document); doc->super.close = svg_close_document; doc->super.count_pages = svg_count_pages; doc->super.load_page = svg_load_page; -- cgit v1.2.3