Skip to content

Fix memory leak introduced on the screenshare feature#2073

Merged
SpecialAro merged 3 commits into
developfrom
fix-memory-leak
Mar 12, 2025
Merged

Fix memory leak introduced on the screenshare feature#2073
SpecialAro merged 3 commits into
developfrom
fix-memory-leak

Conversation

@SpecialAro
Copy link
Copy Markdown
Member

Pre-flight Checklist

Please ensure you've completed all of the following.

Description of Change

Fix memory leak introduced on the screenshare feature

Motivation and Context

This (possibly) fixes #2065. Amongs other changes, I've added (ported from #2067) some code to improve some listeners that were not being removed - possibly causing memory leaks.

Checklist

  • My pull request is properly named
  • The changes respect the code style of the project (pnpm prepare-code)
  • pnpm test passes
  • I tested/previewed my changes locally

Release Notes

Fixed a memory leak introduced by the screenshare feature

@SpecialAro SpecialAro requested review from a team and Alphrag March 11, 2025 15:49
@SpecialAro SpecialAro self-assigned this Mar 11, 2025
Comment thread src/features/todos/components/TodosWebview.tsx
Try fixes

remove "use" reserved name from functions

Fix addEventListener and removeEventListener

Fix timeouts

Fix set inside useEffect (wtf code)

Final lint fix
@SpecialAro SpecialAro requested a review from Alphrag March 12, 2025 10:58
@SpecialAro SpecialAro merged commit 96dd16f into develop Mar 12, 2025
@SpecialAro SpecialAro deleted the fix-memory-leak branch March 12, 2025 19:23
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.

Possible memory leak causing instabilities and crashing of desktop environments and network issues?

2 participants