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

Fully remove the MemberChangeAction when you unbind. #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Clancey
Copy link

@Clancey Clancey commented Nov 17, 2017

This fixes a bug that causes objects to never get disposed to do a neverending strong reference

This fixes a bug that causes objects to never get disposed to do a neverending strong reference
@Clancey
Copy link
Author

Clancey commented Nov 21, 2017

Fixes #12

Copy link

@Sevenish Sevenish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will break things when multiple member actions are bound to the same property.
Add a check for other actions:
if (!subs.HasActions) objectSubs.Remove(key);

This needs something HasActions in class MemberActions
public bool HasActions => actions.Count != 0;

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.

2 participants