Version
2.5.2
Reproduction link
https://jsfiddle.net/opzzsudp/
Steps to reproduce
- Create a Vue instance that has a reference to a large object in its data
- Render either a component or an element with any event handler
- 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