summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-03 12:12:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-03 13:09:24 +0100
commit8f5e4f2f8f26b308e88ecf1a15be8e213e373bc3 (patch)
treeaa4b382a1e192ac761c784a69194e78042ed1b11
parent9cdb972db4eb2314eab7f4dca08b44a113cc3d4d (diff)
CID#705740 leak on error case
Change-Id: Ia7013e37eed224e7f07a789a89de625c8cbec9ab
-rw-r--r--sw/source/core/doc/tblcpy.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/core/doc/tblcpy.cxx b/sw/source/core/doc/tblcpy.cxx
index f66faa9c2d7a..55a4b3bb8ace 100644
--- a/sw/source/core/doc/tblcpy.cxx
+++ b/sw/source/core/doc/tblcpy.cxx
@@ -928,7 +928,10 @@ sal_Bool SwTable::InsTable( const SwTable& rCpyTbl, const SwSelBoxes& rSelBoxes,
sal::static_int_cast< sal_uInt16 >(
pLine->GetTabBoxes().size() - nSttBox ) <
pFLine->GetBoxes().size() )
+ {
+ delete pInsFLine;
return sal_False;
+ }
// Test for nesting
for( nBx = 0; nBx < pFLine->GetBoxes().size(); ++nBx )