diff --git a/src/charts/chartpresenter.cpp b/src/charts/chartpresenter.cpp index b8ec2cf..7ae7310 100644 --- a/src/charts/chartpresenter.cpp +++ b/src/charts/chartpresenter.cpp @@ -120,6 +120,8 @@ void ChartPresenter::handleSeriesRemoved(QAbstractSeries *series) chart->hide(); chart->disconnect(); chart->deleteLater(); + if (chart->animation()) + chart->animation()->stopAndDestroyLater(); m_chartItems.removeAll(chart); m_series.removeAll(series); m_layout->invalidate();