From 3b291e19cedf4b26f30c0531c4c0eb77eeac20fb Mon Sep 17 00:00:00 2001 From: faketruth Date: Wed, 26 Oct 2011 23:18:31 +0000 Subject: Fixed a memory leak git-svn-id: http://mc-server.googlecode.com/svn/trunk@19 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cClientHandle.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source') diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index 3fef88bfc..32920b028 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -972,6 +972,7 @@ void cClientHandle::Send( const cPacket & a_Packet, ENUM_PRIORITY a_Priority /* Packets.erase( itr ); bBreak = true; bSignalSemaphore = false; // Because 1 packet is removed, semaphore count is the same + delete PacketData; break; } } -- cgit v1.2.3