summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-05 18:31:54 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-05 18:32:31 +0200
commitea2537d5ea64f4f238fa434dbc7cf53263afe78c (patch)
tree708f7118a403aad162b84fec764747c80efd60d5 /writerperfect
parenta1d7ed235738609ce8c0ecedff075f9d0e531034 (diff)
Fix memory leak
Change-Id: I74001eb033abd7ceb10da60ea707f876d9f22c08
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/common/DirectoryStream.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/writerperfect/source/common/DirectoryStream.cxx b/writerperfect/source/common/DirectoryStream.cxx
index a3522902cd8b..cfc423b1b746 100644
--- a/writerperfect/source/common/DirectoryStream.cxx
+++ b/writerperfect/source/common/DirectoryStream.cxx
@@ -129,7 +129,10 @@ DirectoryStream *DirectoryStream::createForParent(const com::sun::star::uno::Ref
{
pDir = new writerperfect::DirectoryStream(xDirContent);
if (!pDir->isStructured())
+ {
+ delete pDir;
pDir = 0;
+ }
}
}