This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix($rootScope): workaround for Chrome's memleak
Under certain circumstances chrome fails to GC scopes because of buggy optimizations and caching. Nulling out references to (not from!) other scopes helps Chrome to realize that this object should be GC-ed. This is really just a workaround as the real problem needs to be fixed in Chrome. See discusstion at: #1313 (comment) And chrome bug at: https://code.google.com/p/v8/issues/detail?id=2073 Closes #1313
- Loading branch information
bd524fc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a note that this commit causes NPEs when a scope is destroyed more than once. the issue was fixed in d6da505