Skip to content

Commit

Permalink
Fix memory leak when rebuilding meshes
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurkehrwald authored and freezy committed Nov 8, 2024
1 parent 45f2244 commit ad647f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ private void OnDrawGizmos()

} else {
var api = InstantiateColliderApi(player, null);
var colliders = new ColliderReference(Allocator.TempJob);
var kinematicColliders = new ColliderReference(Allocator.TempJob, true);
var colliders = new ColliderReference(Allocator.Temp);
var kinematicColliders = new ColliderReference(Allocator.Temp, true);
try {
api.CreateColliders(ref colliders, ref kinematicColliders, 0.1f);

Expand Down

0 comments on commit ad647f3

Please sign in to comment.