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:
@@ -69,7 +69,7 @@ void RimGeoMechPartCollection::syncWithCase( RimGeoMechCase* geoCase )
|
||||
|
||||
if ( count != (int)m_parts.size() )
|
||||
{
|
||||
m_parts.clearWithoutDelete();
|
||||
m_parts.deleteChildren();
|
||||
|
||||
for ( int i = 0; i < count; i++ )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user