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:
Magne Sjaastad
2013-03-08 08:35:27 +01:00
parent f6fa801607
commit 0a02805a8f

View File

@@ -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);
}
//--------------------------------------------------------------------------------------------------