summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-07-14 12:18:28 +0200
committerDavid Tardon <dtardon@redhat.com>2015-07-14 12:18:38 +0200
commit2496ab82164620a13eca99862b93648bd1c79d03 (patch)
tree5c11d852f9a10ee2503f63c973676cbe6b497fc0 /src/lib
parentfb715bb8a9154731e1629289cc6d43d7473dc460 (diff)
avoid double deletion in case of exception
Change-Id: Ic2767a987ab0890f0dc8fd4e087d0c830ff08bfa
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/VSDXParser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/VSDXParser.cpp b/src/lib/VSDXParser.cpp
index b8669dd..02a3989 100644
--- a/src/lib/VSDXParser.cpp
+++ b/src/lib/VSDXParser.cpp
@@ -74,6 +74,7 @@ bool libvisio::VSDXParser::parseMain()
libvisio::VSDXRelationships rootRels(tmpInput);
delete tmpInput;
+ tmpInput = 0;
// Check whether the relationship points to a Visio document stream
const libvisio::VSDXRelationship *rel = rootRels.getRelationshipByType("http://schemas.microsoft.com/visio/2010/relationships/document");