summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorChristian Lippka ORACLE <christian.lippka@oracle.com>2010-11-15 15:50:02 +0100
committerChristian Lippka ORACLE <christian.lippka@oracle.com>2010-11-15 15:50:02 +0100
commitc0398862334d70c0ecd81833569dc279a628b5e6 (patch)
tree8d2c5d547d6c2f42335e74438f08c0443815c280 /xmloff
parent1ff403576d66813cfec535da9f1558f2f3e2d336 (diff)
impress202: #i113748# applied patch to resolv memory leak for XMLTextListAutoStylePoolEntry_Impl
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/XMLTextListAutoStylePool.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/xmloff/source/text/XMLTextListAutoStylePool.cxx b/xmloff/source/text/XMLTextListAutoStylePool.cxx
index b1b9f039c6b4..f7cbe73acd1b 100644
--- a/xmloff/source/text/XMLTextListAutoStylePool.cxx
+++ b/xmloff/source/text/XMLTextListAutoStylePool.cxx
@@ -185,7 +185,15 @@ XMLTextListAutoStylePool::XMLTextListAutoStylePool( SvXMLExport& rExp ) :
XMLTextListAutoStylePool::~XMLTextListAutoStylePool()
{
+ // The XMLTextListAutoStylePoolEntry_Impl object in the pool need delete explicitly in dtor.
+ ULONG nCount = pPool->Count();
+ while ( nCount-- )
+ delete pPool->Remove(nCount);
delete pPool;
+
+ nCount = pNames->Count();
+ while ( nCount-- )
+ delete pNames->Remove(nCount);
delete pNames;
}