diff options
-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; } } } |