Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3544 in orxonox.OLD for orxonox/trunk/src/orxonox.cc


Ignore:
Timestamp:
Mar 14, 2005, 10:54:00 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: now the delete-process is as inteded by c++
virtual ~ClassName extends deletion and deletes also the MasterClass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/orxonox.cc

    r3543 r3544  
    4848Orxonox::~Orxonox ()
    4949{
    50   this->destroy();
    51 }
    52 
    53 /**
    54    \brief destroys orxonox. Frees al memory and so on.
    55 */
    56 void Orxonox::destroy(void)
    57 {
    5850  Orxonox::singletonRef = NULL;
    5951  if( world != NULL) delete world;
     
    6153  if( localcamera != NULL) delete localcamera;
    6254  if( resources != NULL) delete resources;
    63 
    64  
    6555}
    6656
Note: See TracChangeset for help on using the changeset viewer.