Fix #5324
This commit is contained in:
parent
c637882578
commit
c2f932e28b
1 changed files with 3 additions and 0 deletions
|
@ -769,5 +769,8 @@ export class Room {
|
||||||
public destroy() {
|
public destroy() {
|
||||||
// Stop render loop
|
// Stop render loop
|
||||||
window.cancelAnimationFrame(this.renderFrameRequestId);
|
window.cancelAnimationFrame(this.renderFrameRequestId);
|
||||||
|
|
||||||
|
this.controls.dispose();
|
||||||
|
this.scene.dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue