https://issues.apache.org/ooo/show_bug.cgi?id=120077

ChaoHuang <[email protected]> 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 <[email protected]> ---
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.

Reply via email to