You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-15 22:56:30 +09:00
Argument null check in Recycle(byte[])
This commit is contained in:
@@ -52,7 +52,7 @@ namespace Lidgren.Network
|
||||
|
||||
internal void Recycle(byte[] storage)
|
||||
{
|
||||
if (m_storagePool == null)
|
||||
if (m_storagePool == null || storage == null)
|
||||
return;
|
||||
|
||||
lock (m_storagePool)
|
||||
|
||||
Reference in New Issue
Block a user