Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix($rootScope): fix potential memory leak when removing scope listeners
When removing listeners the listener is removed from the array but the array size is not changed until the event is fired again. If that event is never fired but listeners are added/removed then this array will continue growing. This changes the listener removal to `delete` the array entry instead of setting it to `null` in the hope of the browser deallocating the memory for the array entry. Fixes angular#16135
- Loading branch information