Commit 606ef0db authored by mattijs's avatar mattijs Committed by Andrew Heather
Browse files

BUG: MeshObject: revert 17fe55a7.

This fixed the MeshObject on Time but produced problems for the
non-regIOobject MeshObjects.
parent f3eaf29e
...@@ -106,8 +106,8 @@ Foam::MeshObject<Mesh, MeshObjectType, Type>::~MeshObject() ...@@ -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();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment