Fix memory leak
Change-Id: I74001eb033abd7ceb10da60ea707f876d9f22c08
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user