Commit 0786ffba authored by Volker Krause's avatar Volker Krause
Browse files

Don't leak the totals aggregator

parent 137e3c59
......@@ -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));
......
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