Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8302 in orxonox.OLD


Ignore:
Timestamp:
Jun 9, 2006, 7:25:33 PM (18 years ago)
Author:
rennerc
Message:

fixed one more memory leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/network_stream.cc

    r8244 r8302  
    122122      i->second.handshake = NULL;
    123123    }
     124   
     125    if ( i->second.connectionMonitor )
     126    {
     127      delete i->second.connectionMonitor;
     128      i->second.connectionMonitor = NULL;
     129    }
    124130  }
    125131 
     
    198204        delete peers[0].handshake;
    199205      peers[0].handshake = NULL;
     206     
     207      if ( peers[0].connectionMonitor )
     208        delete peers[0].connectionMonitor;
     209      peers[0].connectionMonitor = NULL;
    200210    }
    201211  }
     
    282292      it->second.socket = NULL;
    283293
     294      if ( it->second.connectionMonitor )
     295        delete it->second.connectionMonitor;
     296      it->second.connectionMonitor = NULL;
     297     
    284298      if ( it->second.handshake )
    285299        delete it->second.handshake;
Note: See TracChangeset for help on using the changeset viewer.