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

Update DbusInterfaceBase.js #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Vishal8523
Copy link

To fix the issue of accumulating listeners. The issue of accumulating listeners occurs because the code does not remove the forwardPropertyChange listener from the property interface when the DbusInterfaceBase instance is destroyed or when the PropertiesChanged event is no longer needed.

To fix the issue of accumulating listeners
@Vishal8523
Copy link
Author

Vishal8523 commented May 29, 2023

@Niels-Be : Request you to check it. This causes memory leaks in long running applications. The node hangs randomly and then generates a memory leak

@Niels-Be
Copy link
Owner

The forwardPropertyChange should be removed when there are no more PropertyChange listeners.
So maybe you are not removing them in your app?

I don`t think this PR would change anything from this behavior.

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