summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-15 20:56:47 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-15 21:00:58 +0100
commitb3356f6f772d7d265160927d45f935098784c20e (patch)
tree82dd30abae7310fc0ff309e7dde4ca94739776b6 /sc
parentcoverity: initialize variable (diff)
downloadcore-b3356f6f772d7d265160927d45f935098784c20e.tar.gz
core-b3356f6f772d7d265160927d45f935098784c20e.zip
coverity: fix memory leak
Change-Id: Id378d44e8d469c3606050255d9712a0aed5ede57
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/documen4.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/documen4.cxx b/sc/source/core/data/documen4.cxx
index 9356e775ea89..77ebe66a8ad5 100644
--- a/sc/source/core/data/documen4.cxx
+++ b/sc/source/core/data/documen4.cxx
@@ -185,7 +185,7 @@ void ScDocument::InsertMatrixFormula(SCCOL nCol1, SCROW nRow1,
// Zelle ein eigenes Array erhaelt!
aPos = ScAddress( j, k, *itr );
t->CalcRelFromAbs( aPos );
- pCell = new ScFormulaCell( this, aPos, aArr.Clone(), eGram, MM_REFERENCE );
+ pCell = new ScFormulaCell( this, aPos, &aArr, eGram, MM_REFERENCE );
maTabs[*itr]->PutCell(j, k, (ScBaseCell*) pCell);
}
}