[Libreoffice-commits] .: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Nov 24 01:19:11 PST 2012
sw/source/filter/ww8/rtfexport.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 9343d996f5150b6aa8d2dd184a7ba918c7ee204b
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Sat Nov 24 10:18:27 2012 +0100
SwRTFWriter::WriteStream: fix leak
Change-Id: I86205aeeefd727090b780bc41a959200affa9920
diff --git a/sw/source/filter/ww8/rtfexport.cxx b/sw/source/filter/ww8/rtfexport.cxx
index 33ab009..d45e057 100644
--- a/sw/source/filter/ww8/rtfexport.cxx
+++ b/sw/source/filter/ww8/rtfexport.cxx
@@ -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;
}
More information about the Libreoffice-commits
mailing list