mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fix crash in select intervals in PfPvPlot
.. we delete the curves after they are detached which causes a SEGV as they are already deleted.
This commit is contained in:
@@ -245,7 +245,7 @@ PfPvPlot::refreshZoneItems()
|
||||
while (i.hasNext()) {
|
||||
QwtPlotCurve *curve = i.next();
|
||||
curve->detach();
|
||||
delete curve;
|
||||
//delete curve;
|
||||
}
|
||||
}
|
||||
zoneCurves.clear();
|
||||
@@ -362,7 +362,7 @@ PfPvPlot::setData(RideItem *_rideItem)
|
||||
while (i.hasNext()) {
|
||||
QwtPlotCurve *curve = i.next();
|
||||
curve->detach();
|
||||
delete curve;
|
||||
//delete curve;
|
||||
}
|
||||
}
|
||||
intervalCurves.clear();
|
||||
@@ -461,7 +461,7 @@ PfPvPlot::showIntervals(RideItem *_rideItem)
|
||||
while (i.hasNext()) {
|
||||
QwtPlotCurve *curve = i.next();
|
||||
curve->detach();
|
||||
delete curve;
|
||||
//delete curve;
|
||||
}
|
||||
}
|
||||
intervalCurves.clear();
|
||||
|
||||
Reference in New Issue
Block a user