diff options
author | sj <sj@openoffice.org> | 2010-11-15 16:37:32 +0100 |
---|---|---|
committer | sj <sj@openoffice.org> | 2010-11-15 16:37:32 +0100 |
commit | fa10a71b6b742fe532804f0b389f0a2813b31a27 (patch) | |
tree | bca3a1971d0e554b4ffd98c3ab12875c56af5808 /xmloff | |
parent | 603a6d30d5288aa9f044ac1fd9694f4aa2c5aecd (diff) | |
parent | c0398862334d70c0ecd81833569dc279a628b5e6 (diff) |
impress202: merging
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; } |