Kaydet (Commit) ea2537d5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Fix memory leak

Change-Id: I74001eb033abd7ceb10da60ea707f876d9f22c08
üst a1d7ed23
...@@ -129,7 +129,10 @@ DirectoryStream *DirectoryStream::createForParent(const com::sun::star::uno::Ref ...@@ -129,7 +129,10 @@ DirectoryStream *DirectoryStream::createForParent(const com::sun::star::uno::Ref
{ {
pDir = new writerperfect::DirectoryStream(xDirContent); pDir = new writerperfect::DirectoryStream(xDirContent);
if (!pDir->isStructured()) if (!pDir->isStructured())
{
delete pDir;
pDir = 0; pDir = 0;
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment