This commit is contained in:
donggang
2024-07-02 13:31:37 +08:00
parent 19f40ae5b6
commit 5bc6a1c0a3

View File

@@ -456,11 +456,10 @@ export class GameComponent extends Component {
}
// 自动释放资源
this.releaseAudioEffect();
this.release();
this.releaseDir();
if (this.resPaths) {
this.releaseAudioEffect();
this.release();
this.releaseDir();
this.resPaths.clear();
this.resPaths = null!;
}