diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-15 20:56:47 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-15 21:00:58 +0100 |
commit | b3356f6f772d7d265160927d45f935098784c20e (patch) | |
tree | 82dd30abae7310fc0ff309e7dde4ca94739776b6 /sc | |
parent | cc9cd7af3beb13eede23c6c60506c6e8c329e29d (diff) |
coverity: fix memory leak
Change-Id: Id378d44e8d469c3606050255d9712a0aed5ede57
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/documen4.cxx | 2 |
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); } } |