Kaydet (Commit) 9904fea6 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

coverity: fix memory leak

Change-Id: Ie56951fd321820d16fdee197a86987c99d94f76e
üst 0c316e70
...@@ -77,6 +77,7 @@ ...@@ -77,6 +77,7 @@
#include "charthelper.hxx" #include "charthelper.hxx"
#include "tabbgcolor.hxx" #include "tabbgcolor.hxx"
#include "clipparam.hxx" #include "clipparam.hxx"
#include "prnsave.hxx"
#include <boost/scoped_ptr.hpp> #include <boost/scoped_ptr.hpp>
#include <vector> #include <vector>
...@@ -1021,6 +1022,8 @@ void ScViewFunc::SetPrintRanges( sal_Bool bEntireSheet, const String* pPrint, ...@@ -1021,6 +1022,8 @@ void ScViewFunc::SetPrintRanges( sal_Bool bEntireSheet, const String* pPrint,
pDocSh->GetUndoManager()->AddUndoAction( pDocSh->GetUndoManager()->AddUndoAction(
new ScUndoPrintRange( pDocSh, nCurTab, pOldRanges, pNewRanges ) ); new ScUndoPrintRange( pDocSh, nCurTab, pOldRanges, pNewRanges ) );
} }
else
delete pOldRanges;
// update page breaks // update page breaks
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment