#3752 Fix crash when closing ResInsight

This commit is contained in:
Gaute Lindkvist
2018-11-28 08:21:49 +01:00
parent f2c7f2ce80
commit f18884b675

View File

@@ -143,7 +143,10 @@ Rim3dView::Rim3dView(void)
//--------------------------------------------------------------------------------------------------
Rim3dView::~Rim3dView(void)
{
m_viewer->clearRimView();
if (m_viewer)
{
m_viewer->clearRimView();
}
removeMdiWindowFromMdiArea();
deleteViewWidget();