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

Memory leak in MulticastService #99

Open
ak250995 opened this issue Nov 6, 2020 · 1 comment · May be fixed by #106
Open

Memory leak in MulticastService #99

ak250995 opened this issue Nov 6, 2020 · 1 comment · May be fixed by #106

Comments

@ak250995
Copy link

ak250995 commented Nov 6, 2020

When created, MulticastService subscribes to static NetworkAddressChangedEvent, and doesn't unsubscribe from it anywhere.
Creating MulticastService instances leads to a memory leak.

2020-09-30 16_00_49-Ncr Isip FacadeService – JetBrains dotMemory (Administrator)

@schotime
Copy link

schotime commented Jun 5, 2021

I believe this causes it.

NetworkChange.NetworkAddressChanged += OnNetworkAddressChanged;

It needs to remove the event handler when you dispose the service.

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 a pull request may close this issue.

2 participants