From 437c333ac63f856f43ca499abcfb2fd39c441811 Mon Sep 17 00:00:00 2001 From: Damien Date: Tue, 4 Dec 2012 23:38:13 +0100 Subject: [PATCH] Mismatching allocation and deallocation --- src/HrPwPlot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HrPwPlot.cpp b/src/HrPwPlot.cpp index ff0da92c8..fa71760ca 100644 --- a/src/HrPwPlot.cpp +++ b/src/HrPwPlot.cpp @@ -387,7 +387,7 @@ HrPwPlot::addWattStepCurve(QVector &finalWatts, int nbpoints) smoothWattsStep[t] = t * 10; wattsStepCurve->setData(smoothWattsStep.data(), smoothTimeStep.data(), nbSteps+1); - delete array; + delete [] array; } void @@ -431,7 +431,7 @@ HrPwPlot::addHrStepCurve(QVector &finalHr, int nbpoints) smoothHrStep[t] = t * 2; hrStepCurve->setData(smoothTimeStep2.data(), smoothHrStep.data(), nbSteps+1); - delete array; + delete [] array; } void