utils/HtmlOutputDev.cc |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit a7632c5db6875828500dce7c984ec933d5349f26
Author: Albert Astals Cid <[email protected]>
Date:   Mon Mar 6 22:34:20 2017 +0100

    pdftohtml: fix small memory leak when constructing some filenames

diff --git a/utils/HtmlOutputDev.cc b/utils/HtmlOutputDev.cc
index a084ba0..5f5dc9f 100644
--- a/utils/HtmlOutputDev.cc
+++ b/utils/HtmlOutputDev.cc
@@ -17,7 +17,7 @@
 // All changes made under the Poppler project to this file are licensed
 // under GPL version 2 or later
 //
-// Copyright (C) 2005-2013, 2016 Albert Astals Cid <[email protected]>
+// Copyright (C) 2005-2013, 2016, 2017 Albert Astals Cid <[email protected]>
 // Copyright (C) 2008 Kjartan Maraas <[email protected]>
 // Copyright (C) 2008 Boris Toloknov <[email protected]>
 // Copyright (C) 2008 Haruyuki Kawabe <[email protected]>
@@ -1638,7 +1638,9 @@ GooString* HtmlOutputDev::getLinkDest(AnnotLink *link){
                      file->append(".html");
                  }
                  file->append('#');
-                 file->append(GooString::fromInt(page));
+                 GooString *pgNum = GooString::fromInt(page);
+                 file->append(pgNum);
+                 delete pgNum;
              }
          }
          if (printCommands && file) printf("filename %s\n",file->getCString());
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to