File rakpeer_delete.patch of Package blobbyvolley

Index: blobbyvolley-0.6.0/src/raknet/RakPeer.cpp
===================================================================
--- blobbyvolley-0.6.0.orig/src/raknet/RakPeer.cpp
+++ blobbyvolley-0.6.0/src/raknet/RakPeer.cpp
@@ -3697,7 +3697,7 @@ bool RakPeer::RunUpdateCycle( void )
 
 			callerDataAllocationUsed=HandleBufferedRPC(bcs, time);
 			if ( callerDataAllocationUsed==false )
-				delete bcs->data;
+				delete [] bcs->data;
 		}
 		else if (bcs->command==BufferedCommandStruct::BCS_SEND)
 		{
@@ -3720,7 +3720,7 @@ bool RakPeer::RunUpdateCycle( void )
 
 			callerDataAllocationUsed=SendImmediate((char*)bcs->data, bcs->numberOfBitsToSend, bcs->priority, bcs->reliability, bcs->orderingChannel, bcs->playerId, bcs->broadcast, true, time);
 			if ( callerDataAllocationUsed==false )
-				delete bcs->data;
+				delete [] bcs->data;
 		}
 		else
 		{
openSUSE Build Service is sponsored by