Fix warning in PTYScrollView.m
Fix warnings and analyzer issues
Fix analyzer warnings in PTYTextView.m
Fix a bunch of analyzer warnings, including several memory leaks
Fix a bunch of analyzer warnings, including a memory leak of ToolWrapper