8000 fix: memory leak in desktopCapturer.getSources by miniak · Pull Request #27506 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: memory leak in desktopCapturer.getSources #27506

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

Merged
merged 1 commit into from
Jan 27, 2021

Conversation

miniak
Copy link
Contributor
@miniak miniak commented Jan 27, 2021

Backport of #27031

See that PR for details.

Notes: Fixed a memory leak in desktopCapturer.getSources.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Jan 27, 2021
@trop trop bot added 9-x-y semver/patch backwards-compatible bug fixes labels Jan 27, 2021
@@ -28,6 +28,7 @@ export const getSources = (event: Electron.IpcMainEvent, options: ElectronIntern
}
// Remove from currentlyRunning once we resolve or reject
currentlyRunning = currentlyRunning.filter(running => running.options !== options);
event.sender.removeListener('destroyed', stopRunning);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

event cannot be null in this branch, compared to master

@zcbenz zcbenz merged commit 39bea9a into 9-x-y Jan 27, 2021
@release-clerk
Copy link
release-clerk bot commented Jan 27, 2021

Release Notes Persisted

Fixed a memory leak in desktopCapturer.getSources.

@zcbenz zcbenz deleted the miniak/fix-getsources-leak-9-x-y branch January 27, 2021 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
9-x-y new-pr 🌱 PR opened recently semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0