Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Mar 14, 2005, 10:54:00 AM (19 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/track_manager.cc

    r3543 r3544  
    226226TrackManager::~TrackManager(void)
    227227{
    228   this->destroy();
    229 }
    230 
    231 /**
    232    \brief deletes all alocated Memory and also deletes everything from the Class this one is erived from
    233 */
    234 void TrackManager::destroy(void)
    235 {
    236228  PRINTF(3)("Destruct TrackManager\n");
    237229
     
    241233  // we do not have a TrackManager anymore
    242234  singletonRef = NULL;
    243  
    244   static_cast<BaseObject*>(this)->destroy();
    245235}
    246236
Note: See TracChangeset for help on using the changeset viewer.