From 6bfb1ba701d394591c63479b68911ee9f0accd74 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Mon, 16 Dec 2013 18:16:15 +0000 Subject: [PATCH] Fix crash in select intervals in PfPvPlot .. we delete the curves after they are detached which causes a SEGV as they are already deleted. --- src/PfPvPlot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PfPvPlot.cpp b/src/PfPvPlot.cpp index dc5e97af4..be96666d3 100644 --- a/src/PfPvPlot.cpp +++ b/src/PfPvPlot.cpp @@ -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();