incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
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

zhang jianfang <> changed:

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

--- Comment #2 from zhang jianfang <> ---
Created attachment 79071
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.

View raw message