BUG: MeshObject: revert 17fe55a7c9.

This fixed the MeshObject on Time but produced problems for the
non-regIOobject MeshObjects.
This commit is contained in:
mattijs
2019-04-17 14:17:28 +01:00
committed by Andrew Heather
parent f3eaf29ed1
commit 606ef0dbde

View File

@ -106,8 +106,8 @@ Foam::MeshObject<Mesh, MeshObjectType, Type>::~MeshObject()
{ {
// We should not do a 'release' at this point since that will upset // We should not do a 'release' at this point since that will upset
// the destructor of regIOobject itself (which gets called after this). // the destructor of regIOobject itself (which gets called after this).
// This now would no longer have the owned-by-registry setting so // However this is only a problem for Time-based MeshObject.
// will not clean up after itself MeshObjectType<Mesh>::release();
} }