Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 13, 2005, 10:50:43 PM (19 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/world_entities/skysphere.cc

    r3526 r3531  
    5757Skysphere::~Skysphere()
    5858{
     59  this->destroy();
     60}
     61
     62void Skysphere::destroy(void)
     63{
     64
    5965  PRINTF(3)("Deleting the SkySphere\n");
    6066  delete skyMaterial;
    6167  free(sphereObj);
     68 
     69  static_cast<WorldEntity*>(this)->destroy();
    6270}
    63 
    6471
    6572/**
Note: See TracChangeset for help on using the changeset viewer.