mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use deleteChildren() when required to avoid memory leak
This commit is contained in:
@@ -1045,7 +1045,7 @@ void RimWellPltPlot::initAfterLoad()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellPltPlot::syncSourcesIoFieldFromGuiField()
|
||||
{
|
||||
m_selectedSourcesForIo.clearWithoutDelete();
|
||||
m_selectedSourcesForIo.deleteChildren();
|
||||
|
||||
for ( const RifDataSourceForRftPlt& addr : m_selectedSources() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user