RecyclableList.RemoveAt fix to release the rented block correctly.

This commit is contained in:
mlemanczyk committed 2023-04-01 20:00:32 +02:00
1 parent 239d45fc8c
commit 80756aff44
1 file changed
+1 -1
+1 -1
View File
@@ -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)