coverity#705740 Resource leak

Change-Id: I646d7eabf77843f639ede33d018eac338c5d0d27
This commit is contained in:
Caolán McNamara
2014-01-24 13:50:41 +00:00
parent 0df3ba835d
commit 4b1ecc4c7d

View File

@@ -938,7 +938,10 @@ sal_Bool SwTable::InsTable( const SwTable& rCpyTbl, const SwSelBoxes& rSelBoxes,
{
if( !( pTmpBox = pLine->GetTabBoxes()[ nSttBox + nBx ])
->GetSttNd() )
{
delete pInsFLine;
return sal_False;
}
// if Ok, insert the Box into the FndLine
pFndBox = new _FndBox( pTmpBox, pInsFLine );
pInsFLine->GetBoxes().insert( pInsFLine->GetBoxes().begin() + nBx, pFndBox );