[poppler] 2 commits - utils/HtmlOutputDev.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Sat Sep 20 05:18:41 PDT 2008
utils/HtmlOutputDev.cc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 77bf8ec94e36fef7e120f1dc4bb1390be71cfb97
Author: Tomas Are Haavet <tomasare at gmail.com>
Date: Sat Sep 20 14:17:06 2008 +0200
Fix memory leak
diff --git a/utils/HtmlOutputDev.cc b/utils/HtmlOutputDev.cc
index 7b7d1ee..86bc2ef 100644
--- a/utils/HtmlOutputDev.cc
+++ b/utils/HtmlOutputDev.cc
@@ -1095,6 +1095,7 @@ void HtmlOutputDev::endPage() {
{
processLink(linksList->getLink(i));
}
+ delete linksList;
pages->conv();
pages->coalesce();
commit b22be54dc2205269974315ca748d835d0990d6da
Author: Tomas Are Haavet <tomasare at gmail.com>
Date: Sat Sep 20 14:16:26 2008 +0200
Fix mismatched free/delete
diff --git a/utils/HtmlOutputDev.cc b/utils/HtmlOutputDev.cc
index 54f62e7..7b7d1ee 100644
--- a/utils/HtmlOutputDev.cc
+++ b/utils/HtmlOutputDev.cc
@@ -21,6 +21,7 @@
// 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>
+// Copyright (C) 2008 Tomas Are Haavet <tomasare at gmail.com>
//
// To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git
@@ -142,7 +143,7 @@ HtmlString::HtmlString(GfxState *state, double fontSize, HtmlFontAccu* fonts) {
HtmlString::~HtmlString() {
- delete text;
+ gfree(text);
delete htext;
gfree(xRight);
}
More information about the poppler
mailing list