diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-18 01:21:54 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-18 01:58:40 +0100 |
commit | 7ae107542c62d6676132a89ae5519e70132f02d3 (patch) | |
tree | 3de277ccfc86f2e2f8891a02cd1b101235f5d8ef /lotuswordpro | |
parent | 57d89a758ad5695df4cc492ccb6a97d5cbaf30b3 (diff) |
coverity: fix memory leak
Change-Id: Iaa27244b1829bfe5a26c9352da6a8819d3037ccd
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpcelllayout.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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<XFBorders> 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; } } } |