diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-10-02 15:00:56 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-10-02 15:21:43 +0100 |
commit | d203b82976bbcfc41995c2a0d05eec467112297b (patch) | |
tree | cc567ef17b88fb3de8eecc7737c55a1541f730a3 /source/xps/xps-outline.c | |
parent | 6d57575a362af052cbc43f00fba5d853bc81767c (diff) | |
download | mupdf-d203b82976bbcfc41995c2a0d05eec467112297b.tar.xz |
Reference count fz_outline struct.
Diffstat (limited to 'source/xps/xps-outline.c')
-rw-r--r-- | source/xps/xps-outline.c | 2 |
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; |