angular-ui/ui-router — pull request #1215 by takeshi (2014-07-22 13:21:37+00:00)
Title: Fix Memory Leak. In spite of new scope,  it is called $destroy method.

If previousLocals equals latestLocals, newScope isn't used. And newScope isn't called $destroy method, so it causes memory leak.