You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2012/06/25 09:17:03 UTC
[Bug 120077] There are some memory leaks in function
ScXMLFontAutoStylePool_Impl::ScXMLFontAutoStylePool_Impl
https://issues.apache.org/ooo/show_bug.cgi?id=120077
ChaoHuang <ch...@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 <ch...@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.