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

Unsubscribe from the input event handler #2362

Conversation

Dmitri-Kom
Copy link
Contributor

Class: Binding, method: RemovePropertyEvent.
If we don't do that, dotMemory (and probably other
memory profiling tools) will report about an event
leakage of PropertyNotifyHelper.
At the moment, nothing is done with the
EventHandler, that is passed as an
input parameter to the RemovePropertyEvent method.
Performing the change fixes the report of the memory
profiling tool.

Class: 'Binding', method: 'RemovePropertyEvent'.
If we don't do that, dotMemory (and probably other
memory profiling tools) will report about an event
leakage of 'PropertyNotifyHelper'.
At the moment, nothing is done with the
EventHandler<EventArgs>, that is passed as an
input parameter. Performing the change fixes the
report of the memory profiling tool.
@cwensley
Copy link
Member

cwensley commented Dec 6, 2022

Hey @Dmitri-Kom, thanks so much for the PR! This looks great, thanks for catching that leak.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants