Added missing cell clear to release the requested array, if needed.
This commit is contained in:
1 parent
5ac21f5d18
commit
79cb86fbce
1 file changed
+1
@@ -873,6 +873,7 @@ namespace Recyclable.Collections
|
|||||||
if (_blockSize >= RecyclableDefaults.MinPooledArrayLength)
|
if (_blockSize >= RecyclableDefaults.MinPooledArrayLength)
|
||||||
{
|
{
|
||||||
_blockArrayPool.Return(_memoryBlocks[index], NeedsClearing);
|
_blockArrayPool.Return(_memoryBlocks[index], NeedsClearing);
|
||||||
|
_memoryBlocks[index] = _emptyBlockArray;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user