Added deallocation of views that were not being deallocated.