mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 00:33:02 +03:00
DataSourceManager::clear() has been fixed
This commit is contained in:
parent
d6fe74e29e
commit
1ae5c2fa82
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user