Skip to content
Snippets Groups Projects
Commit 0786ffba authored by Volker Krause's avatar Volker Krause
Browse files

Don't leak the totals aggregator

parent 137e3c59
No related branches found
No related tags found
No related merge requests found
......@@ -157,6 +157,7 @@ void AnalyticsView::setProduct(const Product& product)
m_aggregatedDataModel->addSourceModel(m_timeAggregationModel);
auto totalsAggr = new TotalAggregator;
m_aggregators.push_back(totalsAggr);
totalsAggr->setSourceModel(m_timeAggregationModel);
ui->chartType->addItem(tr("Samples"), QVariant::fromValue<Aggregator*>(totalsAggr));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment