From 0ac69f2530b68257dc9aeb08b5b0e942e4ff8af1 2012-02-21 12:55:45 From: Michal Klocek Date: 2012-02-21 12:55:45 Subject: [PATCH] Fix memory leak in presenter example --- diff --git a/example/presenterchart/chartview.cpp b/example/presenterchart/chartview.cpp index f1fa540..877ea3f 100644 --- a/example/presenterchart/chartview.cpp +++ b/example/presenterchart/chartview.cpp @@ -43,7 +43,9 @@ m_index(0) ChartView::~ChartView() { - + if(m_series.size()==0) return; + removeSeries(m_series.at(m_index)); + qDeleteAll(m_series); } void ChartView::handleTimeout()