summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-18 01:20:59 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-18 01:58:40 +0100
commit57d89a758ad5695df4cc492ccb6a97d5cbaf30b3 (patch)
treeb94f754b9d98f46808fc5ba89743b8ba28682d31 /lotuswordpro
parent0bb0c37820b255cb00c8e2637368f43566b65779 (diff)
coverity: fix memory leak
Change-Id: I4f31cd0848e8a521bcbcb97fc1abad159745a501
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwpcelllayout.cxx3
1 files changed, 1 insertions, 2 deletions
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<XFBorders> 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;
}
}
}