net-mdns
net-mdns copied to clipboard
Memory leak in MulticastService
When created, MulticastService
subscribes to static NetworkAddressChangedEvent
, and doesn't unsubscribe from it anywhere.
Creating MulticastService
instances leads to a memory leak.
I believe this causes it. https://github.com/richardschneider/net-mdns/blob/b9f2f8158052568a19d09536179ceaf5cae9b23e/src/MulticastService.cs#L342
It needs to remove the event handler when you dispose the service.