mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added assert on ref count of referenced object, as this object is assumed to be released in the destructor
p4#: 20827
This commit is contained in:
@@ -88,6 +88,9 @@ void RimReservoir::initAfterRead()
|
||||
RimReservoir::~RimReservoir()
|
||||
{
|
||||
reservoirViews.deleteAllChildObjects();
|
||||
|
||||
// At this point, we assume that memory should be released
|
||||
CVF_ASSERT(m_rigEclipseCase->refCount() == 1);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user