fix: major memory leak

This commit is contained in:
cha0s 2019-04-30 18:21:06 -05:00
parent 4c77b2ac29
commit f26c9f7fd3

View File

@ -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);
}