summaryrefslogtreecommitdiff
path: root/source/xps
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-10-02 15:00:56 +0100
committerRobin Watts <robin.watts@artifex.com>2015-10-02 15:21:43 +0100
commitd203b82976bbcfc41995c2a0d05eec467112297b (patch)
treecc567ef17b88fb3de8eecc7737c55a1541f730a3 /source/xps
parent6d57575a362af052cbc43f00fba5d853bc81767c (diff)
downloadmupdf-d203b82976bbcfc41995c2a0d05eec467112297b.tar.xz
Reference count fz_outline struct.
Diffstat (limited to 'source/xps')
-rw-r--r--source/xps/xps-outline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/xps/xps-outline.c b/source/xps/xps-outline.c
index b6e68c29..14f8cae7 100644
--- a/source/xps/xps-outline.c
+++ b/source/xps/xps-outline.c
@@ -30,7 +30,7 @@ xps_parse_document_outline(fz_context *ctx, xps_document *doc, fz_xml *root)
if (!target || !description)
continue;
- entry = fz_malloc_struct(ctx, fz_outline);
+ entry = fz_new_outline(ctx);
entry->title = fz_strdup(ctx, description);
entry->dest.kind = FZ_LINK_GOTO;
entry->dest.ld.gotor.flags = 0;