[Libreoffice-commits] core.git: sc/source

Markus Mohrhard markus.mohrhard at googlemail.com
Sat Mar 5 20:25:18 UTC 2016


 sc/source/core/tool/interpr8.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 2015a162dde204ada7d4271bc4c2022984869654
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sat Mar 5 20:27:29 2016 +0100

    cid#1355251, use delete[] for arrays
    
    Change-Id: I1b34af41051d3cf58eddf124aa79b2e68a2e26f7
    Reviewed-on: https://gerrit.libreoffice.org/22937
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sc/source/core/tool/interpr8.cxx b/sc/source/core/tool/interpr8.cxx
index 48bd916..31ab785 100644
--- a/sc/source/core/tool/interpr8.cxx
+++ b/sc/source/core/tool/interpr8.cxx
@@ -140,10 +140,10 @@ ScETSForecastCalculation::ScETSForecastCalculation( SCSIZE nSize, SvNumberFormat
 
 ScETSForecastCalculation::~ScETSForecastCalculation()
 {
-    delete mpBase;
-    delete mpTrend;
-    delete mpPerIdx;
-    delete mpForecast;
+    delete[] mpBase;
+    delete[] mpTrend;
+    delete[] mpPerIdx;
+    delete[] mpForecast;
 }
 
 bool ScETSForecastCalculation::PreprocessDataRange( ScMatrixRef rMatX, ScMatrixRef rMatY, int& rSmplInPrd,


More information about the Libreoffice-commits mailing list