diff -Naur xmloff.31m11/xmloff/source/text/XMLTextListAutoStylePool.cxx xmloff.fix/xmloff/source/text/XMLTextListAutoStylePool.cxx --- xmloff.31m11/xmloff/source/text/XMLTextListAutoStylePool.cxx 2008-07-07 17:55:16.000000000 +0800 +++ xmloff.fix/xmloff/source/text/XMLTextListAutoStylePool.cxx 2010-08-09 20:28:07.028318100 +0800 @@ -188,6 +188,13 @@ XMLTextListAutoStylePool::~XMLTextListAutoStylePool() { + // + // Memory leak. The XMLTextListAutoStylePoolEntry_Impl object in the pool need delete explicitly in dtor. + // + sal_uInt32 nCount = pPool->Count(); + while ( nCount-- ) + delete pPool->Remove((ULONG)nCount); + delete pPool; delete pNames; }