mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Delete child objects when object is deleted
p4#: 20799
This commit is contained in:
parent
77d5b810ca
commit
86696d85e5
@ -40,5 +40,5 @@ RimCaseCollection::RimCaseCollection()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RimCaseCollection::~RimCaseCollection()
|
RimCaseCollection::~RimCaseCollection()
|
||||||
{
|
{
|
||||||
|
reservoirs.deleteAllChildObjects();
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,13 @@ RimIdenticalGridCaseGroup::RimIdenticalGridCaseGroup()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RimIdenticalGridCaseGroup::~RimIdenticalGridCaseGroup()
|
RimIdenticalGridCaseGroup::~RimIdenticalGridCaseGroup()
|
||||||
{
|
{
|
||||||
|
m_mainGrid = NULL;
|
||||||
|
|
||||||
|
delete caseCollection;
|
||||||
|
caseCollection = NULL;
|
||||||
|
|
||||||
|
delete statisticalReservoirCollection;
|
||||||
|
statisticalReservoirCollection = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -42,7 +42,7 @@ RimStatisticalCollection::RimStatisticalCollection()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RimStatisticalCollection::~RimStatisticalCollection()
|
RimStatisticalCollection::~RimStatisticalCollection()
|
||||||
{
|
{
|
||||||
|
reservoirs.deleteAllChildObjects();
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user