Fix memory leak

Change-Id: I74001eb033abd7ceb10da60ea707f876d9f22c08
This commit is contained in:
Stephan Bergmann
2014-06-05 18:31:54 +02:00
parent a1d7ed2357
commit ea2537d5ea

View File

@@ -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;
}
}
}