Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | sw: MLK, sub table causes all table objects leak when loading text document | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Writer | Reporter: | zhang jianfang <zhangjf> | ||||||
Component: | code | Assignee: | andreas.martens | ||||||
Status: | CLOSED FIXED | QA Contact: | issues@sw <issues> | ||||||
Severity: | Trivial | ||||||||
Priority: | P2 | CC: | issues, zhangjf | ||||||
Version: | OOO320m19 | ||||||||
Target Milestone: | 4.0.0 | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||||
Developer Difficulty: | --- | ||||||||
Issue Depends on: | |||||||||
Issue Blocks: | 120975 | ||||||||
Attachments: |
|
Description
zhang jianfang
2010-08-03 04:25:46 UTC
Created attachment 70927 [details]
sample file to recreate the memory leak
Created attachment 79071 [details]
fix code patch
The root cause of this leak is there are cyclic reference between sub table's SwXMLTableContext object and SwXMLTableContext.SwXMLTableRows_Impl.SwXMLTableRow_Impl object. The subtable object is not released, which in sequence causes the main table context object leaks too. For normal SwXMLTableContext object, the cyclic reference is broken when calling SwXMLTableContext.makeTable() api. For sub table, when SwXMLTableContext::MakeTable( SwTableBox *pBox, sal_Int32 nW )
is called, it doesn't has this behaviour. So solution is to add the call to SwXMLTableRow_Impl.dispose() in SwXMLTableContext::MakeTable( SwTableBox *pBox, sal_Int32 nW ) too.
Set target to AOO 3.5 and change to confirmed state. "zhangjf" committed SVN revision 1380421 into trunk: #i113600#, Add call to subtable SwXMLTableRow_Impl.dispose() to break cycle r... Comment on attachment 79071 [details]
fix code patch
Remove review tag since long time no response.
Mark as resolved state. |