summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJian Fang Zhang <zhangjf@apache.org>2012-09-04 01:05:22 +0000
committerJian Fang Zhang <zhangjf@apache.org>2012-09-04 01:05:22 +0000
commitba47a717e009b2b497cbccfca2872e66f9ecb130 (patch)
treed0354efae103aad74fce3abbea69ed97f547cbd9
parent50eca22976c42014f5e2c53f4bf19e2e1d21ee62 (diff)
#i113600#, Add call to subtable SwXMLTableRow_Impl.dispose() to break cycle reference to SwXMLTableContext object
Found by: zhangjf Patch by: zhangjf
Notes
-rw-r--r--sw/source/filter/xml/xmltbli.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/filter/xml/xmltbli.cxx b/sw/source/filter/xml/xmltbli.cxx
index 28828742216a..1421b77db3e6 100644
--- a/sw/source/filter/xml/xmltbli.cxx
+++ b/sw/source/filter/xml/xmltbli.cxx
@@ -2862,6 +2862,9 @@ void SwXMLTableContext::MakeTable( SwTableBox *pBox, sal_Int32 nW )
bRelWidth = GetParentTable()->bRelWidth;
_MakeTable( pBox );
+
+ for( sal_uInt16 i=0; i<pRows->Count(); i++ ) // i113600, to break the cyclic reference to SwXMLTableContext object
+ (*pRows)[i]->Dispose();
}
const SwStartNode *SwXMLTableContext::InsertTableSection(