[poppler] utils/HtmlOutputDev.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Mon Mar 6 21:34:38 UTC 2017
utils/HtmlOutputDev.cc | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit a7632c5db6875828500dce7c984ec933d5349f26
Author: Albert Astals Cid <aacid at kde.org>
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 <aacid at kde.org>
+// Copyright (C) 2005-2013, 2016, 2017 Albert Astals Cid <aacid at kde.org>
// Copyright (C) 2008 Kjartan Maraas <kmaraas at gnome.org>
// Copyright (C) 2008 Boris Toloknov <tlknv at yandex.ru>
// Copyright (C) 2008 Haruyuki Kawabe <Haruyuki.Kawabe at unisys.co.jp>
@@ -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());
More information about the poppler
mailing list