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 Fri, 29 Jun 2012 02:58:53 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=120077

--- Comment #17 from ChaoHuang <chao.dev.h@gmail.com> ---
(In reply to comment #14)
> ALG: I have reverted the patch and follow another strategy: Let all
> CreateIterator usages return a boost::shared_ptr instance. This makes clear
> that the ownership changes and allows deletion of the SfxStyleSheetIterator
> in all cases cleanly when the last instance of SfxStyleSheetIteratorPtr (the
> boost typedef) is released. Building incompatible for testing...

It seems like that using smart pointer (e.g boost::shared_ptr) is the best way
to solve such an "easy-forgot-to-release" issue. I will try to follow this way
in future.

Another memory leak is from an unnamed heap object created by
"EditEngine::CreatePool()". It is still in the codebase after reverted R1354011
and committed R1355082.

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

Mime
View raw message