[GH-ISSUE #4164] [FR] Prevent resource leakage #1864

Closed
opened 2026-03-23 21:17:50 +00:00 by mirror · 0 comments
Owner

Originally created by @Linij on GitHub (Dec 19, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4164

Originally assigned to: @Xazin on GitHub.

Description

image

Impact

I saw that some of the code would cause the app to restart, but the code only cleared the objects in getIt and did not trigger the dispose method for the started task. Therefore, I think it is necessary to add a section of judgment prevent resource leakage.

Additional Context

No response

Originally created by @Linij on GitHub (Dec 19, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4164 Originally assigned to: @Xazin on GitHub. ### Description <img width="852" alt="image" src="https://github.com/AppFlowy-IO/AppFlowy/assets/8857514/f3369291-326d-4578-bd00-aa24ca06d24b"> ### Impact I saw that some of the code would cause the app to restart, but the code only cleared the objects in getIt and did not trigger the dispose method for the started task. Therefore, I think it is necessary to add a section of judgment prevent resource leakage. ### Additional Context _No response_
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#1864
No description provided.