Skip to content

Commit

Permalink
Fixing another* memory leak in BodyNode, see phetsims/my-solar-system#88
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Mar 8, 2023
1 parent c9df03b commit d9d7b51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/view/BodyNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ export default class BodyNode extends ShadedSphereNode {
soundManager.removeSoundGenerator( this.releaseClip );
}
this.soundClip.dispose();
this.grabClip.dispose();
this.releaseClip.dispose();
};
}

Expand Down

0 comments on commit d9d7b51

Please sign in to comment.