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.