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