Skip to content

Commit

Permalink
Merge pull request #111 from AnnulusGames/fix-animationcurve-leaks
Browse files Browse the repository at this point in the history
Fix: memory leak in NativeAnimationCurve
  • Loading branch information
AnnulusGames committed Mar 18, 2024
2 parents e9f6e34 + 7bcb730 commit 61239d3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ public void Reset()
dataArray.AsSpan().Clear();
callbacksArray.AsSpan().Clear();
tail = 0;

SharedRewindableAllocator<AnimationCurveAllocatorKey>.Allocator.Rewind();
}

public float GetPlaybackSpeed(MotionHandle handle)
Expand Down

0 comments on commit 61239d3

Please sign in to comment.