diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-10-02 14:56:07 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-10-02 15:18:39 +0100 |
commit | 6d57575a362af052cbc43f00fba5d853bc81767c (patch) | |
tree | fe7e9de79303ad89b67da450349850fbcb8fb3fe /source/xps/xps-doc.c | |
parent | 0dda0e13f481d1243fb88a576fc41fe9a7deac62 (diff) | |
download | mupdf-6d57575a362af052cbc43f00fba5d853bc81767c.tar.xz |
fz_link fixes.
Make fz_link reference counting threadsafe.
Remember to free dests of GOTO links. Accordingly, ensure that XPS
does not create links with uninitialised dests.
Diffstat (limited to 'source/xps/xps-doc.c')
-rw-r--r-- | source/xps/xps-doc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/xps/xps-doc.c b/source/xps/xps-doc.c index ec12e87a..6f45b431 100644 --- a/source/xps/xps-doc.c +++ b/source/xps/xps-doc.c @@ -137,6 +137,7 @@ xps_add_link(fz_context *ctx, xps_document *doc, const fz_rect *area, char *base dest.ld.gotor.page = target->page; dest.ld.gotor.file_spec = NULL; dest.ld.gotor.new_window = 0; + dest.ld.gotor.dest = NULL; } link = fz_new_link(ctx, area, dest); |