[raknet] Match RakPeer::DeallocatePacket(...)

This commit is contained in:
RD42 2024-08-18 23:34:38 +08:00
parent 5fb709859d
commit f014eb9310

View File

@ -1030,7 +1030,9 @@ void RakPeer::DeallocatePacket( Packet *packet )
return; return;
if (packet->deleteData) if (packet->deleteData)
delete packet->data; if (packet->data)
delete packet->data;
free(packet); free(packet);
} }