diff --git a/Packages/src/Runtime/Internal/Utilities/ObjectPool.cs b/Packages/src/Runtime/Internal/Utilities/ObjectPool.cs index c74f74e..de33953 100644 --- a/Packages/src/Runtime/Internal/Utilities/ObjectPool.cs +++ b/Packages/src/Runtime/Internal/Utilities/ObjectPool.cs @@ -121,7 +121,11 @@ public static List Rent() /// public static void Return(ref List toRelease) { - UnityEngine.Pool.ListPool.Release(toRelease); + if (toRelease != null) + { + UnityEngine.Pool.ListPool.Release(toRelease); + } + toRelease = null; } #else