Use deleteChildren() when required to avoid memory leak

This commit is contained in:
Magne Sjaastad
2022-05-31 12:56:45 +02:00
parent 950ec38a14
commit 6a5b9f7300
11 changed files with 14 additions and 14 deletions

View File

@@ -425,7 +425,7 @@ void RimPlotAxisProperties::appendAnnotation( RimPlotAxisAnnotation* annotation
//--------------------------------------------------------------------------------------------------
void RimPlotAxisProperties::removeAllAnnotations()
{
m_annotations.clearWithoutDelete();
m_annotations.deleteChildren();
}
//--------------------------------------------------------------------------------------------------