summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-11-24 10:18:27 +0100
committerMiklos Vajna <vmiklos@suse.cz>2012-11-24 10:18:57 +0100
commit9343d996f5150b6aa8d2dd184a7ba918c7ee204b (patch)
tree0f12bf538243608c973b454545122bed0b848c8a /sw
parent233369b1e7990c6a3d03810b81eae0ee9175771d (diff)
SwRTFWriter::WriteStream: fix leak
Change-Id: I86205aeeefd727090b780bc41a959200affa9920
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/rtfexport.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/rtfexport.cxx b/sw/source/filter/ww8/rtfexport.cxx
index 33ab00928488..d45e057e1e76 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;
}