diff --git a/ApplicationLibCode/ProjectDataModel/RimContourMapProjection.cpp b/ApplicationLibCode/ProjectDataModel/RimContourMapProjection.cpp index acf64a369d..5795b3744f 100644 --- a/ApplicationLibCode/ProjectDataModel/RimContourMapProjection.cpp +++ b/ApplicationLibCode/ProjectDataModel/RimContourMapProjection.cpp @@ -391,7 +391,9 @@ void RimContourMapProjection::clearGridMapping() clearResults(); clearTimeStepRange(); - if ( m_contourMapProjection ) m_contourMapProjection->clearGridMapping(); + m_contourMapProjection.reset(); + m_contourMapGrid.reset(); + m_mapCellVisibility.clear(); }