mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 10:22:15 -05:00
Use deleteChildren() when required to avoid memory leak
This commit is contained in:
1 parent
950ec38a14
commit
6a5b9f7300
11 files changed
+14
-14
No files matched your search
@@ -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