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:
@@ -425,7 +425,7 @@ void RimPlotAxisProperties::appendAnnotation( RimPlotAxisAnnotation* annotation
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPlotAxisProperties::removeAllAnnotations()
|
||||
{
|
||||
m_annotations.clearWithoutDelete();
|
||||
m_annotations.deleteChildren();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user