summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-outline.c
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/pdf/pdf-outline.c
parent6d57575a362af052cbc43f00fba5d853bc81767c (diff)
downloadmupdf-d203b82976bbcfc41995c2a0d05eec467112297b.tar.xz
Reference count fz_outline struct.
Diffstat (limited to 'source/pdf/pdf-outline.c')
-rw-r--r--source/pdf/pdf-outline.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/pdf/pdf-outline.c b/source/pdf/pdf-outline.c
index 44c0c518..0c1d3feb 100644
--- a/source/pdf/pdf-outline.c
+++ b/source/pdf/pdf-outline.c
@@ -18,12 +18,7 @@ pdf_load_outline_imp(fz_context *ctx, pdf_document *doc, pdf_obj *dict)
{
if (pdf_mark_obj(ctx, dict))
break;
- node = fz_malloc_struct(ctx, fz_outline);
- node->title = NULL;
- node->dest.kind = FZ_LINK_NONE;
- node->down = NULL;
- node->next = NULL;
- node->is_open = 0;
+ node = fz_new_outline(ctx);
*prev = node;
prev = &node->next;