From 57d89a758ad5695df4cc492ccb6a97d5cbaf30b3 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 18 Feb 2013 01:20:59 +0100 Subject: coverity: fix memory leak Change-Id: I4f31cd0848e8a521bcbcb97fc1abad159745a501 --- 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 8112069e1f7d..fd1cfcf2e10b 100644 --- a/lotuswordpro/source/filter/lwpcelllayout.cxx +++ b/lotuswordpro/source/filter/lwpcelllayout.cxx @@ -742,7 +742,7 @@ LwpCellBorderType LwpConnectedCellLayout::GetCellBorderType(sal_uInt16 nRow, sal LwpCellLayout * pLeftNeighbour = GetCellByRowCol(nRow+iLoop, GetLeftColID(nCol), pTableLayout); if (pLeftNeighbour) { - XFBorders * pNeighbourBorders = pLeftNeighbour->GetXFBorders(); + boost::scoped_ptr pNeighbourBorders(pLeftNeighbour->GetXFBorders()); if (pNeighbourBorders) { XFBorder * pRightBorder = pNeighbourBorders->GetRight(); @@ -753,7 +753,6 @@ LwpCellBorderType LwpConnectedCellLayout::GetCellBorderType(sal_uInt16 nRow, sal bNoLeftBorder = sal_False; break; } - delete pNeighbourBorders; } } } -- cgit