https://issues.apache.org/ooo/show_bug.cgi?id=113600

zhang jianfang <[email protected]> changed:

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

--- Comment #2 from zhang jianfang <[email protected]> ---
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.

Reply via email to