diff --git a/limereport/lrdatasourcemanager.cpp b/limereport/lrdatasourcemanager.cpp index 668aa71..4517ff7 100644 --- a/limereport/lrdatasourcemanager.cpp +++ b/limereport/lrdatasourcemanager.cpp @@ -1437,13 +1437,13 @@ void DataSourceManager::clear(ClearMethod method) case All: invalidateLinkedDatasources(dit.key()); delete dit.value(); - m_datasources.erase(dit++); + dit = m_datasources.erase(dit); break; default: if (owned){ invalidateLinkedDatasources(dit.key()); delete dit.value(); - m_datasources.erase(dit++); + dit = m_datasources.erase(dit); } else { ++dit; }