Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 8, 2008, 11:53:58 AM (16 years ago)
Author:
scheusso
Message:

some enhanced memory handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network3/src/network/Server.cc

    r1246 r1248  
    232232    //connection->addPacket(packet_gen.gstate(gamestates->popGameState(clientID)) , clientID);
    233233    connection->createClient(clientID);
     234    delete con;
    234235    return true;
    235236  }
     
    239240    if(!gamestates->pushGameState(data, clientID))
    240241        COUT(3) << "Could not push gamestate\t\t\t\t=====" << std::endl;
     242    delete[] data->data;
     243    delete data;
    241244  }
    242245
Note: See TracChangeset for help on using the changeset viewer.