Skip to content

Commit

Permalink
fix mem leak
Browse files Browse the repository at this point in the history
  • Loading branch information
LeXXik committed Oct 2, 2024
1 parent b166f74 commit b448ad6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/physics/jolt/back/operators/creator.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,8 @@ function createPlaneSettings(cb, Jolt, jv) {
const settings = new Jolt.PlaneShapeSettings(plane, new Jolt.PhysicsMaterial(),
cb.read(BUFFER_READ_FLOAT32) /* half extent */);

Jolt.destroy(plane);

return settings;
}

Expand Down

0 comments on commit b448ad6

Please sign in to comment.