From 7ae107542c62d6676132a89ae5519e70132f02d3 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 18 Feb 2013 01:21:54 +0100 Subject: coverity: fix memory leak Change-Id: Iaa27244b1829bfe5a26c9352da6a8819d3037ccd --- lotuswordpro/source/filter/lwpcelllayout.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lotuswordpro') diff --git a/lotuswordpro/source/filter/lwpcelllayout.cxx b/lotuswordpro/source/filter/lwpcelllayout.cxx index fd1cfcf2e10b..45835f0de6f8 100644 --- a/lotuswordpro/source/filter/lwpcelllayout.cxx +++ b/lotuswordpro/source/filter/lwpcelllayout.cxx @@ -769,7 +769,7 @@ LwpCellBorderType LwpConnectedCellLayout::GetCellBorderType(sal_uInt16 nRow, sal LwpCellLayout * pBelowNeighbour = GetCellByRowCol(nRow + nRowSpan, nCol+iLoop, pTableLayout); if (pBelowNeighbour) { - XFBorders * pBelowBorders = pBelowNeighbour->GetXFBorders(); + boost::scoped_ptr pBelowBorders(pBelowNeighbour->GetXFBorders()); if (pBelowBorders) { XFBorder * pTopBorder = pBelowBorders->GetTop(); @@ -780,7 +780,6 @@ LwpCellBorderType LwpConnectedCellLayout::GetCellBorderType(sal_uInt16 nRow, sal bNoBottomBorder = sal_False; break; } - delete pBelowBorders; } } } -- cgit