Fixed delete

Arrays should be deleted with "delete []"