Fixed memory leak in RecyclableList.AddRangeEnumerated
This commit is contained in:
1 parent
6fc2a10e28
commit
ea52b32859
1 file changed
+1
-1
@@ -91,7 +91,7 @@ namespace Recyclable.Collections
|
|||||||
|
|
||||||
int blockSize = _blockSize, targetItemIdx = _nextItemIndex, targetBlockIdx = _lastBlockIndex;
|
int blockSize = _blockSize, targetItemIdx = _nextItemIndex, targetBlockIdx = _lastBlockIndex;
|
||||||
|
|
||||||
IEnumerator<T> enumerator = source.GetEnumerator();
|
using IEnumerator<T> enumerator = source.GetEnumerator();
|
||||||
if (!enumerator.MoveNext())
|
if (!enumerator.MoveNext())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in new issue
Block a user