calls `delete[]` instead of `delete`

calls `delete[]` instead of `delete`