Reduce memory leaks by removing all views.

Change-Id: I64b95981425840d101c8122421281976d0251bae