incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 120077] There are some memory leaks in function ScXMLFontAutoStylePool_Impl::ScXMLFontAutoStylePool_Impl
Date Mon, 25 Jun 2012 07:17:03 GMT

ChaoHuang <> changed:

           What    |Removed                     |Added
            Summary|There is a memory leak in   |There are some memory leaks
                   |function                    |in function
                   |ScXMLFontAutoStylePool_Impl |ScXMLFontAutoStylePool_Impl
                   |::ScXMLFontAutoStylePool_Im |::ScXMLFontAutoStylePool_Im
                   |pl                          |pl

--- Comment #1 from ChaoHuang <> ---
An unnamed object typed SfxItemPool will be created in heap by calling function
"EditEngine::CreatePool()", which will not be released. So it is a memory leak.
The solution is to record the unnamed object with member data in class
ScXMLFontAutoStylePool_Impl and to free it in destructor.

Another memory leak is from object pItr typed SfxStyleSheetIterator, which is
created by calling function "SfxStyleSheetBasePool::CreateIterator". There is
no code to free it. So it is also a memory leak. Need to free it explicitly.

You are receiving this mail because:
You are the assignee for the bug.

View raw message