Fixed memory leak in RecyclableList.AddRangeEnumerated

This commit is contained in:
mlemanczyk committed 2023-03-24 19:03:46 +01:00
1 parent 6fc2a10e28
commit ea52b32859
1 file changed
+1 -1
+1 -1
View File
@@ -91,7 +91,7 @@ namespace Recyclable.Collections
int blockSize = _blockSize, targetItemIdx = _nextItemIndex, targetBlockIdx = _lastBlockIndex;
IEnumerator<T> enumerator = source.GetEnumerator();
using IEnumerator<T> enumerator = source.GetEnumerator();
if (!enumerator.MoveNext())
{
return;