diff options
Diffstat (limited to 'xps/xps_outline.c')
-rw-r--r-- | xps/xps_outline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xps/xps_outline.c b/xps/xps_outline.c index ae43a4e8..6252a6c1 100644 --- a/xps/xps_outline.c +++ b/xps/xps_outline.c @@ -31,7 +31,7 @@ xps_parse_document_outline(xps_document *doc, xml_element *root) if (!target || !description) continue; - entry = fz_malloc(doc->ctx, sizeof *entry); + entry = fz_malloc_struct(doc->ctx, fz_outline); entry->title = fz_strdup(doc->ctx, description); entry->page = xps_find_link_target(doc, target); entry->down = NULL; |