Changeset 107 for osgVisual/src


Ignore:
Timestamp:
Jul 30, 2010, 8:56:43 AM (14 years ago)
Author:
Torben Dannhauer
Message:

Removed two memory leaks!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/src/cluster/dataIO_clusterENet_implementation.cpp

    r95 r107  
    262262void dataIO_clusterENet_implementation::onReceivePacket(ENetEvent* event_)
    263263{
    264                 receivedTransportContainer.assign((char*)(event_->packet->data), event_->packet->dataLength);   
    265                 //std::cout << "A packet of length "<<event_->packet->dataLength<<" containing "<<receivedTransportContainer<<" was received from "<<receivedTransportContainer<<" on channel "<<(int)(event_->channelID)<<std::endl;
     264                receivedTransportContainer.assign((char*)(event_->packet->data), event_->packet->dataLength);
     265                enet_packet_destroy(event_->packet);   
     266                //std::cout << "A packet of length "<<receivedTransportContainer.size()<<" containing "<<receivedTransportContainer<<" was received from "<<receivedTransportContainer<<" on channel "<<(int)(event_->channelID)<<std::endl;
    266267}
    267268
Note: See TracChangeset for help on using the changeset viewer.