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 committed Nov 5, 2024
1 parent 06a819f commit 8b3d444
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 8b3d444

Please sign in to comment.