mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-08 23:23:01 -06:00
Fixed memory leak for cross section collection
This commit is contained in:
parent
57b0e7b18d
commit
5d81209b72
@ -97,6 +97,14 @@ RimCrossSection::RimCrossSection()
|
||||
uiCapability()->setUiChildrenHidden(true);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimCrossSection::~RimCrossSection()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -59,6 +59,7 @@ public:
|
||||
|
||||
public:
|
||||
RimCrossSection();
|
||||
~RimCrossSection();
|
||||
|
||||
caf::PdmField<QString> name;
|
||||
caf::PdmField<bool> isActive;
|
||||
|
@ -41,6 +41,14 @@ RimCrossSectionCollection::RimCrossSectionCollection()
|
||||
isActive.uiCapability()->setUiHidden(true);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimCrossSectionCollection::~RimCrossSectionCollection()
|
||||
{
|
||||
m_crossSections.deleteAllChildObjects();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -42,6 +42,7 @@ class RimCrossSectionCollection : public caf::PdmObject
|
||||
|
||||
public:
|
||||
RimCrossSectionCollection();
|
||||
~RimCrossSectionCollection();
|
||||
|
||||
caf::PdmField<bool> isActive;
|
||||
|
||||
|
@ -174,6 +174,7 @@ RimView::~RimView(void)
|
||||
|
||||
delete m_rangeFilterCollection;
|
||||
delete m_overrideRangeFilterCollection;
|
||||
delete crossSectionCollection;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user