RecyclableList.RemoveAt fix to release the rented block correctly.
This commit is contained in:
1 parent
239d45fc8c
commit
80756aff44
1 file changed
+1
-1
@@ -69,7 +69,7 @@ namespace Recyclable.Collections
|
||||
list._nextItemIndex = blockSize;
|
||||
}
|
||||
|
||||
if ((list._capacity * blockSize) - oldCountMinus1 == blockSize)
|
||||
if (list._capacity - oldCountMinus1 == blockSize)
|
||||
{
|
||||
T[][] memoryBlocks = list._memoryBlocks;
|
||||
if (blockSize >= RecyclableDefaults.MinPooledArrayLength)
|
||||
|
||||
Reference in new issue
Block a user