Use delete[] to match new T[].