Commit b90c47b9 authored by Volker Krause's avatar Volker Krause
Browse files

Don't leak aggregators on shutdown

parent 5e07543c
......@@ -133,6 +133,11 @@ AnalyticsView::~AnalyticsView()
settings.beginGroup(QStringLiteral("Analytics"));
settings.setValue(QStringLiteral("TimeAggregationMode"), m_timeAggregationModel->aggregationMode());
settings.endGroup();
// the chart views can't handle null or deleted charts, so set them to something safe
ui->singularChartView->setChart(m_nullSingularChart.get());
ui->timelineChartView->setChart(m_nullTimelineChart.get());
qDeleteAll(m_aggregators);
}
void AnalyticsView::setRESTClient(RESTClient* client)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment