forked from pool/texlive
41d895c2fc
- Add source-poppler0.86.0.patch: fix build with poppler 0.86.0. OBS-URL: https://build.opensuse.org/request/show/788987 OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive?expand=0&rev=354
21 lines
1.1 KiB
Diff
21 lines
1.1 KiB
Diff
diff -urp texlive-20190407-source.orig/texk/web2c/pdftexdir/pdftoepdf-poppler0.75.0.cc texlive-20190407-source/texk/web2c/pdftexdir/pdftoepdf-poppler0.75.0.cc
|
|
--- texlive-20190407-source.orig/texk/web2c/pdftexdir/pdftoepdf-poppler0.75.0.cc 2020-03-26 20:36:35.584513454 -0500
|
|
+++ texlive-20190407-source/texk/web2c/pdftexdir/pdftoepdf-poppler0.75.0.cc 2020-03-26 20:37:50.808915680 -0500
|
|
@@ -757,7 +757,7 @@ read_pdf_info(char *image_name, char *pa
|
|
if (page_name) {
|
|
// get page by name
|
|
GString name(page_name);
|
|
- LinkDest *link = pdf_doc->doc->findDest(&name);
|
|
+ std::unique_ptr<LinkDest> link = pdf_doc->doc->findDest(&name);
|
|
if (link == 0 || !link->isOk())
|
|
pdftex_fail("PDF inclusion: invalid destination <%s>", page_name);
|
|
const Ref ref = link->getPageRef();
|
|
@@ -765,7 +765,6 @@ read_pdf_info(char *image_name, char *pa
|
|
if (page_num == 0)
|
|
pdftex_fail("PDF inclusion: destination is not a page <%s>",
|
|
page_name);
|
|
- delete link;
|
|
} else {
|
|
// get page by number
|
|
if (page_num <= 0 || page_num > epdf_num_pages)
|