Skip to content

Improve the destruction and cleanup of some components - #17072

Open
TCOTC wants to merge 2 commits into
siyuan-note:devfrom
TCOTC:fix/destroy
Open

Improve the destruction and cleanup of some components#17072
TCOTC wants to merge 2 commits into
siyuan-note:devfrom
TCOTC:fix/destroy

Conversation

@TCOTC

@TCOTC TCOTC commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

Description / 描述

AI 说一些监听器/观察器有闭包问题,元素移除之后也无法垃圾回收。我改成了显式取消监听器/观察器。

另外给 Model 增加了一个 public destroy() 方法,把注销逻辑都统一移进去了。

Type of change / 变更类型

  • Bug fix
    缺陷修复
  • New feature
    新功能
  • Text updates or new language additions
    修改文案或增加新语言

Checklist / 检查清单

  • I have performed a self-review of my own code
    我对自己的代码进行了自我审查
  • I have full rights to the submitted code and agree to license it under this project's AGPL-3.0 license
    我拥有所提交代码的完整权利,并同意其以本项目的 AGPL-3.0 许可证授权
  • PR is submitted to the dev branch and has no merge conflicts
    PR 提交到 dev 分支,并且没有合并冲突

@88250
88250 requested a review from Vanessa219 February 20, 2026 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant