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

cleanup event handler to prevent memory leak #2

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

rksm
Copy link
Contributor

@rksm rksm commented Oct 23, 2020

The server handler subscribes to the destroyed event of the webcontents that send a message. That handler is never removed, leading to a memory leak that becomes apparent if many messages are sent.

@linonetwo
Copy link

This seems important, thank you for this, hope @frankwallis can merge this soon. Before that, We can copy the code and use it offline.

@linonetwo
Copy link

Used in https://github.com/linonetwo/electron-ipc-cat

@frankwallis frankwallis merged commit 62948ab into frankwallis:master Jul 10, 2024
@frankwallis
Copy link
Owner

Thanks, have published as 2.1.1. Sorry for the delay!

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.

3 participants