diff options
Diffstat (limited to 'apps/pdfapp.c')
-rw-r--r-- | apps/pdfapp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/pdfapp.c b/apps/pdfapp.c index 48e9fe93..aa529220 100644 --- a/apps/pdfapp.c +++ b/apps/pdfapp.c @@ -367,7 +367,6 @@ static void pdfapp_loadpage_xps(pdfapp_t *app) } app->page_bbox = xps_bound_page(app->xps, page); - app->page_links = NULL; /* Create display list */ app->page_list = fz_new_display_list(app->ctx); @@ -375,6 +374,8 @@ static void pdfapp_loadpage_xps(pdfapp_t *app) xps_run_page(app->xps, page, mdev, fz_identity, NULL); fz_free_device(mdev); + app->page_links = page->links; + xps_free_page(app->xps, page); } |