Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 23, 2009, 8:53:51 PM (15 years ago)
Author:
scheusso
Message:

some cleaning up and memory leak fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/netp6/src/network/GamestateManager.cc

    r3214 r3227  
    6161  {
    6262    if( this->reference )
    63       delete this->reference;
    64     for( std::map<unsigned int, packet::Gamestate*>::iterator it = gamestateQueue.begin(); it != gamestateQueue.end(); it++ )
     63        delete this->reference;std::map<unsigned int, packet::Gamestate*>::iterator it;
     64    for( it = gamestateQueue.begin(); it != gamestateQueue.end(); ++it )
    6565      delete (*it).second;
     66    std::map<unsigned int, std::map<unsigned int, packet::Gamestate*> >::iterator it1;
     67    std::map<unsigned int, packet::Gamestate*>::iterator it2;
     68    for( it1 = gamestateMap_.begin(); it1 != gamestateMap_.end(); ++it1 )
     69    {
     70      for( it2 = it1->second.begin(); it2 != it1->second.end(); ++it2 )
     71        delete (*it2).second;
     72    }
    6673    delete trafficControl_;
    6774  }
Note: See TracChangeset for help on using the changeset viewer.