From 79cb86fbce42a58ff064cc1f35febd68f3ac9fac Mon Sep 17 00:00:00 2001 From: mlemanczyk Date: Tue, 18 Apr 2023 00:21:01 +0200 Subject: [PATCH] Added missing cell clear to release the requested array, if needed. --- Recyclable.Collections/RecyclableList.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Recyclable.Collections/RecyclableList.cs b/Recyclable.Collections/RecyclableList.cs index 613be1d..3e477dc 100644 --- a/Recyclable.Collections/RecyclableList.cs +++ b/Recyclable.Collections/RecyclableList.cs @@ -873,6 +873,7 @@ namespace Recyclable.Collections if (_blockSize >= RecyclableDefaults.MinPooledArrayLength) { _blockArrayPool.Return(_memoryBlocks[index], NeedsClearing); + _memoryBlocks[index] = _emptyBlockArray; } else {