From 1ae5c2fa8233741a93fccb55b2374b790d8ff6a9 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Sat, 27 Jun 2020 11:23:36 +0300 Subject: [PATCH] DataSourceManager::clear() has been fixed --- limereport/lrdatasourcemanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }