Fix #5324
This commit is contained in:
parent
c637882578
commit
c2f932e28b
|
@ -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 New Issue