From 6d57575a362af052cbc43f00fba5d853bc81767c Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 2 Oct 2015 14:56:07 +0100 Subject: 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. --- source/xps/xps-doc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/xps') 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); -- cgit v1.2.3