incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 120077] There are some memory leaks in function ScXMLFontAutoStylePool_Impl::ScXMLFontAutoStylePool_Impl
Date Mon, 25 Jun 2012 07:17:03 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=120077

ChaoHuang <chao.dev.h@gmail.com> 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 <chao.dev.h@gmail.com> ---
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.

Mime
View raw message