Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3531 in orxonox.OLD for orxonox/trunk/src/lib/coord


Ignore:
Timestamp:
Mar 13, 2005, 10:50:43 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: all WorldEntities/PWodes now destroy all date they alocate.

this is done with a virtual destructor:
if PNode is deleted it calls for the delete of the virtual destructor, and deletes the data of it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/coord/p_node.cc

    r3529 r3531  
    110110  this->parent = NULL;
    111111  /* there is currently a problem with cleaning up - fix*/
     112
     113  this->destroy();
    112114}
    113115
     
    128130  /* this deletes all children in the list */
    129131  this->children->destroy ();
     132
     133  static_cast<BaseObject*>(this)->destroy();
    130134}
    131135
Note: See TracChangeset for help on using the changeset viewer.