Use delete[] with new[]