Clean up a view issues found by VS static analyzer.