summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-17 18:49:56 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-17 19:09:22 +0100
commit5c7f0e9de5ed799b38d749c0625857658cc1ed61 (patch)
tree76b2839209986accdc0b295f060e8a8fd60479e1
parent9aa5ad4156a1ea1e8f73f88d3236218c6f37dea2 (diff)
coverity: fix memory leak
Change-Id: I2e0b97285edf1544091402c05d3880f560a352e9
-rw-r--r--sc/source/ui/docshell/docfunc.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index 7f8254f1a7d8..cc730647c9bd 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -1696,6 +1696,7 @@ bool ScDocFunc::InsertCells( const ScRange& rRange, const ScMarkData* pTabMark,
if (!bApi)
rDocShell.ErrorMessage(STR_MSSG_INSERTCELLS_0);
rDocShell.GetUndoManager()->LeaveListAction();
+ delete pUndoData;
return false;
}