Kaydet (Commit) 9343d996 authored tarafından Miklos Vajna's avatar Miklos Vajna

SwRTFWriter::WriteStream: fix leak

Change-Id: I86205aeeefd727090b780bc41a959200affa9920
üst 233369b1
......@@ -1144,7 +1144,8 @@ SwRTFWriter::~SwRTFWriter()
sal_uLong SwRTFWriter::WriteStream()
{
SAL_INFO("sw.rtf", OSL_THIS_FUNC);
RtfExport aExport( NULL, pDoc, new SwPaM( *pCurPam->End(), *pCurPam->Start() ), pCurPam, this, m_bOutOutlineOnly );
SwPaM aPam(*pCurPam->End(), *pCurPam->Start());
RtfExport aExport( NULL, pDoc, &aPam, pCurPam, this, m_bOutOutlineOnly );
aExport.ExportDocument( true );
return 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