diff --git a/src/utils/live2d.ts b/src/utils/live2d.ts index 32a200e..4a0ffef 100644 --- a/src/utils/live2d.ts +++ b/src/utils/live2d.ts @@ -73,7 +73,11 @@ class Live2d { } public destroy() { + if (!this.model) return + this.model?.destroy() + + this.model = null } public resizeModel(modelSize: ModelSize) {