[poppler] Branch 'poppler-0.22' - utils/HtmlOutputDev.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sun Jun 9 03:08:46 PDT 2013


 utils/HtmlOutputDev.cc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit a27890ac441fbd613ddfe6fcf404b92be371e554
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Jun 9 12:08:06 2013 +0200

    Fix memory leak

diff --git a/utils/HtmlOutputDev.cc b/utils/HtmlOutputDev.cc
index 9eaab42..39069fe 100644
--- a/utils/HtmlOutputDev.cc
+++ b/utils/HtmlOutputDev.cc
@@ -34,6 +34,7 @@
 // Copyright (C) 2012 Ihar Filipau <thephilips at gmail.com>
 // Copyright (C) 2012 Gerald Schmidt <solahcin at gmail.com>
 // Copyright (C) 2012 Pino Toscano <pino at kde.org>
+// Copyright (C) 2013 Julien Nabet <serval2412 at yahoo.fr>
 //
 // 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
@@ -1699,9 +1700,9 @@ GBool HtmlOutputDev::dumpDocOutline(PDFDoc* doc)
 			GooString *str = Docname->copy();
 			str->append("-outline.html");
 			output = fopen(str->getCString(), "w");
+			delete str;
 			if (output == NULL)
 				return gFalse;
-			delete str;
 			bClose = gTrue;
 
 			GooString *htmlEncoding =


More information about the poppler mailing list