mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-09 23:16:00 -06:00
System : Fixed memory leaks
This commit is contained in:
parent
a86d24df97
commit
47bb20368a
@ -90,7 +90,7 @@ RiaPreferences::RiaPreferences(void)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiaPreferences::~RiaPreferences(void)
|
||||
{
|
||||
|
||||
delete readerSettings;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -58,6 +58,8 @@ RimEclipseFaultColors::RimEclipseFaultColors()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimEclipseFaultColors::~RimEclipseFaultColors()
|
||||
{
|
||||
delete m_customFaultResultColors;
|
||||
m_customFaultResultColors = NULL;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -86,6 +86,7 @@ RimEclipsePropertyFilter::RimEclipsePropertyFilter()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimEclipsePropertyFilter::~RimEclipsePropertyFilter()
|
||||
{
|
||||
delete resultDefinition;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -40,7 +40,6 @@ RimEclipsePropertyFilterCollection::RimEclipsePropertyFilterCollection()
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&propertyFilters, "PropertyFilters", "Property Filters", "", "", "");
|
||||
propertyFilters.uiCapability()->setUiHidden(true);
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -48,7 +47,7 @@ RimEclipsePropertyFilterCollection::RimEclipsePropertyFilterCollection()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimEclipsePropertyFilterCollection::~RimEclipsePropertyFilterCollection()
|
||||
{
|
||||
|
||||
propertyFilters.deleteAllChildObjects();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -43,6 +43,7 @@ RimGeoMechCellColors::RimGeoMechCellColors(void)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimGeoMechCellColors::~RimGeoMechCellColors(void)
|
||||
{
|
||||
delete legendConfig;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -69,6 +69,7 @@ RimGeoMechPropertyFilter::RimGeoMechPropertyFilter()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimGeoMechPropertyFilter::~RimGeoMechPropertyFilter()
|
||||
{
|
||||
delete resultDefinition;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -47,7 +47,7 @@ RimGeoMechPropertyFilterCollection::RimGeoMechPropertyFilterCollection()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimGeoMechPropertyFilterCollection::~RimGeoMechPropertyFilterCollection()
|
||||
{
|
||||
|
||||
propertyFilters.deleteAllChildObjects();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -96,6 +96,9 @@ RimGeoMechView::RimGeoMechView(void)
|
||||
RimGeoMechView::~RimGeoMechView(void)
|
||||
{
|
||||
m_geomechCase = NULL;
|
||||
|
||||
delete cellResult;
|
||||
delete m_propertyFilterCollection;
|
||||
}
|
||||
|
||||
|
||||
|
@ -175,6 +175,7 @@ RimView::~RimView(void)
|
||||
delete m_rangeFilterCollection;
|
||||
delete m_overrideRangeFilterCollection;
|
||||
delete crossSectionCollection;
|
||||
delete m_gridCollection;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -99,7 +99,8 @@ RimWellLogExtractionCurve::RimWellLogExtractionCurve()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimWellLogExtractionCurve::~RimWellLogExtractionCurve()
|
||||
{
|
||||
|
||||
delete m_geomResultDefinition;
|
||||
delete m_eclipseResultDefinition;
|
||||
}
|
||||
|
||||
|
||||
|
@ -65,6 +65,7 @@ RimWellLogFile::RimWellLogFile()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimWellLogFile::~RimWellLogFile()
|
||||
{
|
||||
m_wellLogChannelNames.deleteAllChildObjects();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -89,7 +89,10 @@ RimWellLogPlot::RimWellLogPlot()
|
||||
RimWellLogPlot::~RimWellLogPlot()
|
||||
{
|
||||
RiuMainWindow::instance()->removeViewer(m_viewer);
|
||||
|
||||
detachAllCurves();
|
||||
m_tracks.deleteAllChildObjects();
|
||||
|
||||
delete m_viewer;
|
||||
}
|
||||
|
||||
|
@ -72,6 +72,8 @@ RimWellLogTrack::RimWellLogTrack()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimWellLogTrack::~RimWellLogTrack()
|
||||
{
|
||||
curves.deleteAllChildObjects();
|
||||
|
||||
delete m_wellLogTrackPlotWidget;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user