Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Prevent memory leak of Client by unregistering parent dispose method #3088
This addresses issue #1400 dealing with a memory leak in the processing.net.Client which occurs when the parent "dispose" method is not unregistered if the client is stopped. Rather than trying to track the state of several different variables, I've just declared an explicit boolean variable to track whether or not the dispose method needs to be unregistered. Now when spawning and closing Clients the memory usage stays consistent.