Changeset 3097
- Timestamp:
- May 27, 2009, 11:13:16 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/network/packet/Packet.cc
r3084 r3097 165 165 // ENetPacket *temp = enetPacket_; 166 166 // enetPacket_ = 0; // otherwise we have a double free because enet already handles the deallocation of the packet 167 Host::addPacket( enetPacket_, clientID_); 167 if(!Host::addPacket( enetPacket_, clientID_)) 168 enet_packet_destroy(this->enetPacket_); // if we could not add the packet to the enet queue delete it manually 168 169 return true; 169 170 }
Note: See TracChangeset
for help on using the changeset viewer.