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

Fixed memory leak from use of DependencyPropertyDescriptor.AddValueChanged #39

Merged
merged 1 commit into from
Oct 6, 2015

Conversation

perturbare
Copy link
Contributor

The VertexControl class uses
DependencyPropertyDescriptor.AddValueChanged to receive change
notifications on GraphAreaBase.X and GraphAreaBase.Y attached
properties. It was not removing the value change monitoring and had a
memory leak as a result. Modified the control position change handling
to use bindings instead of DependencyPropertyDescriptor.AddValueChanged.
This eliminates strong references from the property descriptor to the
vertex controls.

….AddValueChanged

The VertexControl class uses
DependencyPropertyDescriptor.AddValueChanged to receive change
notifications on GraphAreaBase.X and GraphAreaBase.Y attached
properties. It was not removing the value change monitoring and had a
memory leak as a result. Modified the control position change handling
to use bindings instead of DependencyPropertyDescriptor.AddValueChanged.
This eliminates strong references from the property descriptor to the
vertex controls.
panthernet added a commit that referenced this pull request Oct 6, 2015
Fixed memory leak from use of DependencyPropertyDescriptor.AddValueChanged
@panthernet panthernet merged commit 481b8ce into panthernet:PCL Oct 6, 2015
@perturbare perturbare deleted the patch-VertexControl-leak branch October 6, 2015 21:31
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.

None yet

2 participants