- Timestamp:
- Jun 8, 2006, 4:59:51 PM (18 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/data_stream.cc
r7954 r8273 53 53 DataStream::~DataStream() 54 54 { 55 55 delete [] this->upBuffer; 56 this->upBuffer = NULL; 57 delete [] this->downBuffer; 58 this->downBuffer = NULL; 56 59 } 57 60 … … 120 123 int passUp(byte* data) 121 124 { 122 125 return 0; 123 126 } -
branches/network/src/lib/network/message_manager.cc
r8228 r8273 47 47 if ( it2->data ) 48 48 { 49 delete it2->data;49 delete [] it2->data; 50 50 it2->data = NULL; 51 51 } -
branches/network/src/lib/network/network_game_manager.cc
r8228 r8273 70 70 NetworkGameManager::~NetworkGameManager() 71 71 { 72 delete MessageManager::getInstance(); 72 73 } 73 74 -
branches/network/src/lib/network/synchronizeable.cc
r8244 r8273 72 72 if ( this->isServer() && this->beSynchronized() && this->getUniqueID() > 0 ) 73 73 NetworkGameManager::getInstance()->removeSynchronizeable( this->getUniqueID() ); 74 75 for ( SyncVarList::iterator it = syncVarList.begin(); it != syncVarList.end(); it++ ) 76 { 77 delete *it; 78 } 79 syncVarList.clear(); 80 81 for ( UserStateHistory::iterator it = recvStates.begin(); it != recvStates.end(); it++ ) 82 { 83 for ( StateHistory::iterator it2 = it->begin(); it2 != it->end(); it2++ ) 84 { 85 delete [] (*it2)->data; 86 delete *it2; 87 } 88 89 } 90 91 for ( UserStateHistory::iterator it = sentStates.begin(); it != sentStates.end(); it++ ) 92 { 93 for ( StateHistory::iterator it2 = it->begin(); it2 != it->end(); it2++ ) 94 { 95 delete [] (*it2)->data; 96 delete *it2; 97 } 98 99 } 74 100 } 75 101 … … 159 185 160 186 stateFrom = initialEntry; 187 188 sentStates[userId].push_back( stateFrom ); 161 189 } 162 190 else … … 278 306 279 307 stateFrom = initialEntry; 308 309 recvStates[userId].push_back( stateFrom ); 280 310 } 281 311 else … … 442 472 if ( (*delIt)->data ) 443 473 delete [] (*delIt)->data; 474 delete *delIt; 444 475 recvStates[userId].erase( delIt ); 445 476 … … 510 541 if ( (*delIt)->data ) 511 542 delete [] (*delIt)->data; 543 delete *delIt; 512 544 sentStates[userId].erase( delIt ); 513 545
Note: See TracChangeset
for help on using the changeset viewer.