[Orxonox-commit 3188] r7881 - code/branches/network6/src/libraries/network

scheusso at orxonox.net scheusso at orxonox.net
Mon Feb 14 08:58:48 CET 2011


Author: scheusso
Date: 2011-02-14 08:58:47 +0100 (Mon, 14 Feb 2011)
New Revision: 7881

Modified:
   code/branches/network6/src/libraries/network/Connection.cc
Log:
fixing possible malloc/delete problem


Modified: code/branches/network6/src/libraries/network/Connection.cc
===================================================================
--- code/branches/network6/src/libraries/network/Connection.cc	2011-02-13 20:52:42 UTC (rev 7880)
+++ code/branches/network6/src/libraries/network/Connection.cc	2011-02-14 07:58:47 UTC (rev 7881)
@@ -207,7 +207,7 @@
         {
           // peer probably already disconnected so just discard packet
           assert(event.peerID<this->nextPeerID_);
-          delete event.packet;
+          enet_packet_destroy(event.packet);
         }
         break;
       case outgoingEventType::disconnectPeer:




More information about the Orxonox-commit mailing list