summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-16 00:37:41 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-16 01:01:00 +0100
commit9904fea6694f9f93ca049b75d7184260fb93ee68 (patch)
treeb6e25fea02c5cdd7e082f4518f914b5d94118ad5 /sc
parent0c316e7048131730a9a5bc713796dd917149700e (diff)
coverity: fix memory leak
Change-Id: Ie56951fd321820d16fdee197a86987c99d94f76e
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/viewfun2.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index 64cea573b9cd..b7d5221b628b 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -77,6 +77,7 @@
#include "charthelper.hxx"
#include "tabbgcolor.hxx"
#include "clipparam.hxx"
+#include "prnsave.hxx"
#include <boost/scoped_ptr.hpp>
#include <vector>
@@ -1021,6 +1022,8 @@ void ScViewFunc::SetPrintRanges( sal_Bool bEntireSheet, const String* pPrint,
pDocSh->GetUndoManager()->AddUndoAction(
new ScUndoPrintRange( pDocSh, nCurTab, pOldRanges, pNewRanges ) );
}
+ else
+ delete pOldRanges;
// update page breaks