fix: major memory leak
This commit is contained in:
parent
4c77b2ac29
commit
f26c9f7fd3
|
@ -42,7 +42,7 @@ export class Body extends AbstractBody {
|
|||
|
||||
static associateBody(matterBody, avocadoBody) {
|
||||
if (!this.bodies) {
|
||||
this.bodies = new Map();
|
||||
this.bodies = new WeakMap();
|
||||
}
|
||||
this.bodies.set(matterBody, avocadoBody);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user