Mismatching allocation and deallocation

This commit is contained in:
Damien
2012-12-04 23:38:13 +01:00
parent cc8863130d
commit 437c333ac6

View File

@@ -387,7 +387,7 @@ HrPwPlot::addWattStepCurve(QVector<double> &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<double> &finalHr, int nbpoints)
smoothHrStep[t] = t * 2;
hrStepCurve->setData(smoothTimeStep2.data(), smoothHrStep.data(), nbSteps+1);
delete array;
delete [] array;
}
void