Skip to content

Conversation

@ktsn
Copy link
Member

@ktsn ktsn commented Dec 17, 2017

The overwriting _init function causes memory leak because it retains the vm instance even after the data hook is finished. The _init function itself is also kept with the original component class. So we need to free the overwriting _init function after it is used.

fix #209

@ktsn ktsn merged commit 7580098 into master Dec 17, 2017
@ktsn ktsn deleted the fix-memory-leak branch December 17, 2017 13:20
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.

Memory leak (detached DOM tree) when Vue class component is used

2 participants