Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: some resource leaks #4634

Merged
merged 2 commits into from
Feb 13, 2025
Merged

Conversation

WofWca
Copy link
Collaborator

@WofWca WofWca commented Feb 13, 2025

  • fix: resource leak when closing FullscreenMedia
  • fix: target-browser temp file upload resource leak

The bug was introduced in 0b933ac.

`Array.every()` stops iterating the array if the closure evaluates
to a falsy value. This results in only the first event listener
getting cleaned up.
As in the previous commit, `Array.every()` stops iterating
through the array if the closure return value is falsy.
@WofWca WofWca force-pushed the wofwca/fix-FullscreenMedia-resource-leak branch from 986ab81 to e783ebd Compare February 13, 2025 13:13
@WofWca WofWca merged commit e237292 into main Feb 13, 2025
11 of 12 checks passed
@WofWca WofWca deleted the wofwca/fix-FullscreenMedia-resource-leak branch February 13, 2025 19:52
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.

2 participants