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

Prevent leak caused by saving promise with can-dom-data-state #569

Merged
merged 2 commits into from
Aug 22, 2018

Conversation

matthewp
Copy link
Contributor

This prevents a leak caused by storing a promise with
can-dom-data-state. Since this instance of can-dom-data-state comes from
Node's module system and not Steal's, this doesn't get cleaned up when
we clean up memory with can-dom-mutate.

In this case we can replace the usage with Symbols.

This commit also turns back on the memory leak test, which is now
passing. Closes #560

This prevents a leak caused by storing a promise with
can-dom-data-state. Since this instance of can-dom-data-state comes from
Node's module system and not Steal's, this doesn't get cleaned up when
we clean up memory with can-dom-mutate.

In this case we can replace the usage with Symbols.

This commit also turns back on the memory leak test, which is now
passing. Closes #560
@matthewp matthewp merged commit 80ada75 into master Aug 22, 2018
@matthewp matthewp deleted the mem-leak2 branch August 22, 2018 13:30
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.

1 participant