mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix memory leak for data source ensemble summary (#8919)
* Do not create summary case group twice * Fix memory leak of objects contained in childArrayFields Use deleteAllChildObjects to delete objects instead of clear() Rename collection function clear() -> deleteAllChildObjects * Early exit for empty path * Reduce redundant calls to refreshMetaData
This commit is contained in:
@@ -333,10 +333,10 @@ RimSummaryAddressCollection* RimSummaryAddressCollection::getOrCreateSubfolder(
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryAddressCollection::clear()
|
||||
void RimSummaryAddressCollection::deleteAllChildObjects()
|
||||
{
|
||||
m_adresses.clear();
|
||||
m_subfolders.clear();
|
||||
m_adresses.deleteAllChildObjects();
|
||||
m_subfolders.deleteAllChildObjects();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user