Changed SendData(Packet packet) to SendData(Packet& packet), made appropriate changes to Packet.h, and changed the delete to delete[] in ReceiveData