summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJian Fang Zhang <zhangjf@apache.org>2012-09-04 01:05:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-05-28 11:48:03 +0100
commitfc08fc98655397103ce7aacc18c2aa538ccff4e1 (patch)
treec2df22eeb510ce79149abeb0882079f13409012c
parent7fbc4335aedbc0574700f06ae48114d2aa3e8a5e (diff)
Resolves: #i113600# Add call to subtable SwXMLTableRow_Impl.dispose()...
to break cycle reference to SwXMLTableContext object Found by: zhangjf Patch by: zhangjf (cherry picked from commit ba47a717e009b2b497cbccfca2872e66f9ecb130) Change-Id: Iba0b581920417b3866b07542621d56ccdc272261
-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 e0a214f52992..7756ab5543c6 100644
--- a/sw/source/filter/xml/xmltbli.cxx
+++ b/sw/source/filter/xml/xmltbli.cxx
@@ -2867,6 +2867,9 @@ void SwXMLTableContext::MakeTable( SwTableBox *pBox, sal_Int32 nW )
bRelWidth = GetParentTable()->bRelWidth;
_MakeTable( pBox );
+
+ for (size_t i=0; i < pRows->size(); ++i) // i113600, to break the cyclic reference to SwXMLTableContext object
+ (*pRows)[i].Dispose();
}
const SwStartNode *SwXMLTableContext::InsertTableSection(