summaryrefslogtreecommitdiffstats
path: root/src/dom
diff options
context:
space:
mode:
authorJosh Andler <scislac@gmail.com>2009-12-16 21:27:19 +0000
committerJosh Andler <scislac@gmail.com>2009-12-16 21:27:19 +0000
commit2e2d12079c6034d82a8d70db7e2c8a0f0199ff5f (patch)
treecffe6759e653c409ca2419e6405eb3e7616dfa85 /src/dom
parentEmbedimage extension fix and stderr Unicode support in inkex.py (diff)
downloadinkscape-2e2d12079c6034d82a8d70db7e2c8a0f0199ff5f.tar.gz
inkscape-2e2d12079c6034d82a8d70db7e2c8a0f0199ff5f.zip
Patches 3-11 from 488862 for a number of memleaks and allocation/deallocation issues.
(bzr r8891)
Diffstat (limited to 'src/dom')
-rw-r--r--src/dom/util/ziptool.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dom/util/ziptool.cpp b/src/dom/util/ziptool.cpp
index 40f456bd6..1e915ab0a 100644
--- a/src/dom/util/ziptool.cpp
+++ b/src/dom/util/ziptool.cpp
@@ -2207,6 +2207,7 @@ ZipEntry *ZipFile::addFile(const std::string &fileName,
ZipEntry *ze = new ZipEntry();
if (!ze->readFile(fileName, comment))
{
+ delete ze;
return NULL;
}
entries.push_back(ze);