diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-06-09 12:08:06 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2013-06-09 12:08:36 +0200 |
commit | a27890ac441fbd613ddfe6fcf404b92be371e554 (patch) | |
tree | 54ae7c2c0b4b9668c62a39c6a27c8fb62ee5f86b | |
parent | 17a16a2731b1110a12c7163c139d85bccee04492 (diff) |
Fix memory leak
-rw-r--r-- | utils/HtmlOutputDev.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/HtmlOutputDev.cc b/utils/HtmlOutputDev.cc index 9eaab422..39069fe5 100644 --- a/utils/HtmlOutputDev.cc +++ b/utils/HtmlOutputDev.cc @@ -34,6 +34,7 @@ // Copyright (C) 2012 Ihar Filipau <thephilips@gmail.com> // Copyright (C) 2012 Gerald Schmidt <solahcin@gmail.com> // Copyright (C) 2012 Pino Toscano <pino@kde.org> +// Copyright (C) 2013 Julien Nabet <serval2412@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 = |