From ad02b999d946469325b16232709dde96a3e9ebc8 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sat, 16 Feb 2013 00:20:56 +0100 Subject: coverity: fix memory leak Change-Id: I3aed29393376933fe6f07e38fb936911723ed2fe --- sc/source/ui/unoobj/cellsuno.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index cbd100f308f3..bcab454b54ca 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -4128,9 +4128,9 @@ sal_Int32 SAL_CALL ScCellRangesBase::replaceAll( const uno::ReferenceAddUndoTab( *itr, *itr ); - ScMarkData* pUndoMark = NULL; + boost::scoped_ptr pUndoMark; if (bUndo) - pUndoMark = new ScMarkData(aMark); + pUndoMark.reset(new ScMarkData(aMark)); bool bFound = false; if (bUndo) @@ -4153,7 +4153,6 @@ sal_Int32 SAL_CALL ScCellRangesBase::replaceAll( const uno::Reference