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

fix: call component dispose in resize manager to fix leak #5369

Merged
merged 3 commits into from
Aug 10, 2018

Conversation

brandonocasey
Copy link
Contributor

@brandonocasey brandonocasey commented Aug 9, 2018

Currently most event listeners that are being added are not removed because we don't trigger dispose in the ResizeManager. I think that it makes sense to just call the parents dispose here instead though.

EDIT: More Info:

Because we add Touch Activity in the parent class and those don't actually get removed in Resize Manager we leak on every dispose. Calling super.dispose() cleans them up because we remove our list of handlers via a call to DomData.removeData

@gkatsev
Copy link
Member

gkatsev commented Aug 10, 2018

We also probably want to turn off touch activity for the resize manager.

@brandonocasey
Copy link
Contributor Author

sure, I wasn't sure if it needed it or not.

@gkatsev gkatsev merged commit 6f072d8 into master Aug 10, 2018
@gkatsev gkatsev deleted the fix/resize-memory-leak branch August 10, 2018 20:21
gkatsev pushed a commit that referenced this pull request Aug 13, 2018
Because we add Touch Activity in the parent class and those don't actually get removed in Resize Manager we leak on every dispose. Calling super.dispose() cleans them up because we remove our list of handlers via a call to DomData.removeData

Fixes #5339
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