fixed 4 instances of new[] allocated pointers being freed by delete instead of delete[]
This change is