Commit c21c1e9d authored by Jan Möbius's avatar Jan Möbius
Browse files

Extra workaround for backward reference in perObjectData

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 362cf43d
......@@ -81,6 +81,13 @@
template < class MeshT , DataType objectDataType >
MeshObject< MeshT , objectDataType >::~MeshObject()
// Delete the data attached to this object ( this will remove all perObject data)
// Not the best way to do it but it will work.
// This is only necessary if people use references to the mesh below and
// they do something with the mesh in the destructor of their
// perObjectData.
// Delete the Mesh only, if this object contains a mesh
if ( mesh_ != NULL) {
delete mesh_;
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