Kaydet (Commit) 9e137b29 authored tarafından Ivan Timofeev's avatar Ivan Timofeev

fix memory leak

üst 62025f74
...@@ -688,6 +688,10 @@ sal_uInt32 ImpEditEngine::WriteRTF( SvStream& rOutput, EditSelection aSel ) ...@@ -688,6 +688,10 @@ sal_uInt32 ImpEditEngine::WriteRTF( SvStream& rOutput, EditSelection aSel )
rOutput << "}}"; // 1xparentheses paragraphs, 1xparentheses RTF document rOutput << "}}"; // 1xparentheses paragraphs, 1xparentheses RTF document
rOutput.Flush(); rOutput.Flush();
std::vector<SvxFontItem*>::iterator it;
for (it = aFontTable.begin(); it != aFontTable.end(); ++it)
delete *it;
#if (OSL_DEBUG_LEVEL > 2) && !defined( UNX ) #if (OSL_DEBUG_LEVEL > 2) && !defined( UNX )
{ {
SvFileStream aStream( String( RTL_CONSTASCII_USTRINGPARAM ( "d:\\rtf_out.rtf" ) ), STREAM_WRITE|STREAM_TRUNC ); SvFileStream aStream( String( RTL_CONSTASCII_USTRINGPARAM ( "d:\\rtf_out.rtf" ) ), STREAM_WRITE|STREAM_TRUNC );
......
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