diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-11-24 10:18:27 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-11-24 10:18:57 +0100 |
commit | 9343d996f5150b6aa8d2dd184a7ba918c7ee204b (patch) | |
tree | 0f12bf538243608c973b454545122bed0b848c8a /sw | |
parent | 233369b1e7990c6a3d03810b81eae0ee9175771d (diff) |
SwRTFWriter::WriteStream: fix leak
Change-Id: I86205aeeefd727090b780bc41a959200affa9920
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/rtfexport.cxx | 3 |
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; } |