https://issues.apache.org/ooo/show_bug.cgi?id=120077
--- Comment #17 from ChaoHuang <[email protected]> --- (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.
