summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-16 00:08:10 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-16 01:00:57 +0100
commit20ca1cfa6722d62732c4408d14cdc9b1dc56b69a (patch)
treee4c255e472cdbec90ecd8c470a43b3840ab27d1f /sc/source
parent02e4df3ab41e1e616019c4fb4c542474702988c5 (diff)
coverity: fix memory leak
Change-Id: I5c8f4002d92be1ddef3f075be7cbcd6a2e88075f
Diffstat (limited to 'sc/source')
-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 2c8e5e5bfbdf..7f8254f1a7d8 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -1794,6 +1794,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;
}
}