Changeset 114 for osgVisual/src


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

memory leak in clusterENet fixed

Location:
osgVisual/src
Files:
2 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        }
  • osgVisual/src/core/osgVisual.cpp

    r88 r114  
    8181        core->shutdown();
    8282
    83         // Set Pointer to null to destroy the objects before this function ends - otherwise memory leaks wil be detected.
     83        // Set Pointer to null to destroy the objects before this function ends
    8484        core = NULL;
    8585
Note: See TracChangeset for help on using the changeset viewer.