Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | [From Symphony] There is a memory leak in function WW8Export::WriteFkpPlcUsw | ||||||
---|---|---|---|---|---|---|---|
Product: | performance | Reporter: | ChaoHuang <chao.dev.h> | ||||
Component: | code | Assignee: | AOO issues mailing list <issues> | ||||
Status: | CLOSED FIXED | QA Contact: | |||||
Severity: | Normal | ||||||
Priority: | P3 | CC: | Armin.Le.Grand, liushenf | ||||
Version: | AOO 3.4.0 | ||||||
Target Milestone: | 4.0.0 | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||
Developer Difficulty: | --- | ||||||
Issue Depends on: | |||||||
Issue Blocks: | 120975, 121366 | ||||||
Attachments: |
|
Description
ChaoHuang
2012-06-26 08:39:42 UTC
An unnamed object typed SotStorage will be created on heap when calling function SotStorage::OpenSotStorage. There is no place to release it. So it is a memory leak. The solution is to add a reference as a member data to record the unnamed object. The reference will be release in destructor in class WW8Export. Created attachment 78486 [details]
for file "main/sw/source/filter/ww8/wrtww8.cxx" and "main/sw/source/filter/ww8/wrtww8.hxx"
ALG: Added to codebase, built and checked. Destructor gets called as expected. Adding to trunk. Added as r1354032, thanks for the patch! Suggest to put it into AOO 3.5.0 release |