fix: properly dispose sound tick
This commit is contained in:
parent
8701cadbe8
commit
6a348fc693
|
@ -50,7 +50,7 @@ export class Sound extends Resource {
|
||||||
}
|
}
|
||||||
|
|
||||||
destroy() {
|
destroy() {
|
||||||
clearInterval(instance.tickHandle);
|
clearInterval(this.tickHandle);
|
||||||
if (this.sound) {
|
if (this.sound) {
|
||||||
this.sound.unload();
|
this.sound.unload();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user