mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Mismatching allocation and deallocation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user