fix(tts): dispose of the TTS view when shutting down the TTS controller, closes #3400 (#3406)

This commit is contained in:
Huang Xin
2026-02-28 15:58:02 +08:00
committed by GitHub
parent f9a0b39586
commit 1bb49ab023
@@ -540,6 +540,7 @@ export class TTSController extends EventTarget {
await this.stop();
this.#clearHighlighter();
this.#ttsSectionIndex = -1;
this.view.tts = null;
if (this.ttsWebClient.initialized) {
await this.ttsWebClient.shutdown();
}