src/Element.cpp
Element::~Element()
  {
    if (child[0])
      delete child[0];

    if (child[1])
      delete child[1];

    if (newCoord)
      delete newCoord;

    if (elementData)
    {
      elementData->deleteDecorated();
      delete elementData;
    }

    // ;TODO: eventuell nicht löschen!
    if (dof)
    {
      delete [] dof;
      dof = NULL;
    }
  }
// call destructor through Mesh::freeElement !!!
call destructor through Mesh::freeElement
call destructor through Mesh :: freeElement
Element::~Element()
  {
    if (child[0])
      delete child[0];
    if (child[1])
      delete child[1];
    if (newCoord)
      delete newCoord;
    if (elementData)
    {
      elementData->deleteDecorated();
      delete elementData;
    }
    if (dof)
    {
      delete [] dof;
      dof = NULL;
    }
  }
Element :: ~ Element ( ) { if ( child [ 0 ] ) delete child [ 0 ] ; if ( child [ 1 ] ) delete child [ 1 ] ; if ( newCoord ) delete newCoord ; if ( elementData ) { elementData -> deleteDecorated ( ) ; delete elementData ; } if ( dof ) { delete [ ] dof ; dof = NULL ; } }
call destructor through Mesh::freeElement !
call destructor through Mesh :: freeElement !
// ;TODO: eventuell nicht löschen!