Kaydet (Commit) bb626853 authored tarafından Caolán McNamara's avatar Caolán McNamara

fix leak

Change-Id: I61e21619e949fe0dda7c4820e6ddbb8d4d597652
üst 01f28ca8
......@@ -719,23 +719,21 @@ sal_uInt16 LwpDocument::GetNumberOfPagesBefore()
pDivision = pDivision->GetNextDivision();
}
}
/**
/**
* @descr Parse the frame which anchor is to page before parse other contents,
* This method is called when the document is root document.
* This method is called when the document is root document.
*/
void LwpDocument::ParseFrameInPage(IXFStream * pOutputStream)
{
if(IsChildDoc())
if (IsChildDoc())
return;
XFContentContainer* pXFContainer = new XFContentContainer;
XFConvertFrameInPage(pXFContainer);
pXFContainer->ToXml(pOutputStream);
delete pXFContainer;
pXFContainer = nullptr;
rtl::Reference<XFContentContainer> xXFContainer(new XFContentContainer);
XFConvertFrameInPage(xXFContainer.get());
xXFContainer->ToXml(pOutputStream);
}
/**
* @descr Parse the frame which anchor is to page in the entire document
*/
......
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