Changeset 114 for osgVisual/src/cluster


Ignore:
Timestamp:
Jul 31, 2010, 2:19:59 PM (14 years ago)
Author:
Torben Dannhauer
Message:

memory leak in clusterENet fixed

File:
1 edited

Legend:

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

    r107 r114  
    145145        {
    146146                //std::cout << "dataIO_clusterENet_implementation::sendPacket() - ERROR: No connected peer available!" << std::endl;
     147               
     148                // If we can't send the packet, we have to destroy it to free it's memory (In a case of send ENet takes ownership and frees after sending.).
     149                enet_packet_destroy (packet_);
     150
    147151                return;
    148152        }
Note: See TracChangeset for help on using the changeset viewer.