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

BUG: MeshObject: do not release in destructor. Leave to regIOobject. Fixes #1276.

parent cd7748f8
......@@ -104,7 +104,10 @@ bool Foam::MeshObject<Mesh, MeshObjectType, Type>::Delete(const Mesh& mesh)
template<class Mesh, template<class> class MeshObjectType, class Type>
Foam::MeshObject<Mesh, MeshObjectType, Type>::~MeshObject()
// We should not do a 'release' at this point since that will upset
// the destructor of regIOobject itself (which gets called after this).
// This now would no longer have the owned-by-registry setting so
// will not clean up after itself
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