diff --git a/Runtime/ArmatureAwase/NativeMemoryManager.cs b/Runtime/ArmatureAwase/NativeMemoryManager.cs index dcd909a8..eaf6ae43 100644 --- a/Runtime/ArmatureAwase/NativeMemoryManager.cs +++ b/Runtime/ArmatureAwase/NativeMemoryManager.cs @@ -97,7 +97,10 @@ namespace nadena.dev.modular_avatar.core.armature_lock }; arrays.Add(InUseMask); - _allocationMap.OnSegmentDispose += seg => { SetInUseMask(seg.Offset, seg.Length, false); }; + _allocationMap.OnSegmentDispose += seg => + { + if (!_isDisposed) SetInUseMask(seg.Offset, seg.Length, false); + }; } public NativeArrayRef CreateArray() where T : unmanaged