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

Memory leak in updateDOMListeners and updateComponentListeners #6931

Closed
fenduru opened this issue Oct 26, 2017 · 0 comments
Closed

Memory leak in updateDOMListeners and updateComponentListeners #6931

fenduru opened this issue Oct 26, 2017 · 0 comments

Comments

@fenduru
Copy link
Contributor

fenduru commented Oct 26, 2017

Version

2.5.2

Reproduction link

https://jsfiddle.net/opzzsudp/

Steps to reproduce

  1. Create a Vue instance that has a reference to a large object in its data
  2. Render either a component or an element with any event handler
  3. Destroy the Vue instance, remove its element, null out its reference

What is expected?

The Vue instance and the references it contains should be freed for garbage collection

What is actually happening?

The target variables here or here hang onto references and prevent garbage collection


I have a fix ready for this and will be filing a PR shortly

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

No branches or pull requests

1 participant