summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@gnome.org>2008-01-10 23:51:54 +0100
committerAlbert Astals Cid <tsdgeos@bluebox.localdomain>2008-01-10 23:51:54 +0100
commit88f8bf850b6c41d25b9576597b5fc5bd75a122f4 (patch)
treef024ea7722fb0e07d2b56cc97816093f72422914 /utils
parent348f4f9d9d5b0f91da6f46e0fcefec80255d4179 (diff)
Fix two use after free bugs in HtmlOutputDev.cc
Diffstat (limited to 'utils')
-rw-r--r--utils/HtmlOutputDev.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/HtmlOutputDev.cc b/utils/HtmlOutputDev.cc
index 9a330504..1fe960f0 100644
--- a/utils/HtmlOutputDev.cc
+++ b/utils/HtmlOutputDev.cc
@@ -820,8 +820,8 @@ void HtmlOutputDev::doFrame(int firstPage){
fName->append(".html");
if (!(fContentsFrame = fopen(fName->getCString(), "w"))){
- delete fName;
error(-1, "Couldn't open html file '%s'", fName->getCString());
+ delete fName;
return;
}
@@ -934,8 +934,8 @@ HtmlOutputDev::HtmlOutputDev(char *fileName, char *title,
if (!xml) right->append(".html");
if (xml) right->append(".xml");
if (!(page=fopen(right->getCString(),"w"))){
- delete right;
error(-1, "Couldn't open html file '%s'", right->getCString());
+ delete right;
return;
}
delete right;