summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-03-02 10:24:17 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-03-02 18:46:50 +0400
commit9e137b29e1cca1d460017f2a1b276be969002d80 (patch)
treea5c56ef1e395aa1451ac7b19470e16f1936633a7 /editeng
parent62025f7446989c1a29596a2c4cb5ef597808f15e (diff)
fix memory leak
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit4.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx
index 07d80741ad63..d28d664edeed 100644
--- a/editeng/source/editeng/impedit4.cxx
+++ b/editeng/source/editeng/impedit4.cxx
@@ -688,6 +688,10 @@ sal_uInt32 ImpEditEngine::WriteRTF( SvStream& rOutput, EditSelection aSel )
rOutput << "}}"; // 1xparentheses paragraphs, 1xparentheses RTF document
rOutput.Flush();
+ std::vector<SvxFontItem*>::iterator it;
+ for (it = aFontTable.begin(); it != aFontTable.end(); ++it)
+ delete *it;
+
#if (OSL_DEBUG_LEVEL > 2) && !defined( UNX )
{
SvFileStream aStream( String( RTL_CONSTASCII_USTRINGPARAM ( "d:\\rtf_out.rtf" ) ), STREAM_WRITE|STREAM_TRUNC );