diff options
author | Christian Lippka ORACLE <christian.lippka@oracle.com> | 2010-11-15 15:50:02 +0100 |
---|---|---|
committer | Christian Lippka ORACLE <christian.lippka@oracle.com> | 2010-11-15 15:50:02 +0100 |
commit | c0398862334d70c0ecd81833569dc279a628b5e6 (patch) | |
tree | 8d2c5d547d6c2f42335e74438f08c0443815c280 /xmloff | |
parent | 1ff403576d66813cfec535da9f1558f2f3e2d336 (diff) |
impress202: #i113748# applied patch to resolv memory leak for XMLTextListAutoStylePoolEntry_Impl
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/XMLTextListAutoStylePool.cxx | 8 |
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; } |