mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
Disconnect comparison view in destructor of RimEclipseResultCase
In debug build on Windows, a crash in the destructor of Rim3dView happens when the comparison view is set to null.
This commit is contained in:
1 parent
2250084176
commit
6ce9af1148
1 file changed
+7
@@ -497,6 +497,13 @@ cvf::ref<RifReaderInterface> RimEclipseResultCase::createMockModel( QString mode
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimEclipseResultCase::~RimEclipseResultCase()
|
||||
{
|
||||
// Disconnect all comparison views. In debug build on Windows, a crash occurs. The comparison view is also set to zero in the destructor
|
||||
// of Rim3dView()
|
||||
for ( auto v : reservoirViews )
|
||||
{
|
||||
if ( v ) v->setComparisonView( nullptr );
|
||||
}
|
||||
|
||||
reservoirViews.deleteChildren();
|
||||
m_flowDiagSolutions.deleteChildren();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user