incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 113600] sw: MLK, sub table causes all table objects leak when loading text document
Date Wed, 22 Aug 2012 14:01:54 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=113600

zhang jianfang <zhangjf@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #79071|                            |review?
              Flags|                            |

--- Comment #2 from zhang jianfang <zhangjf@apache.org> ---
Created attachment 79071
  --> https://issues.apache.org/ooo/attachment.cgi?id=79071&action=edit
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Mime
View raw message