ICU-4559 Fix a memory leak.

X-SVN-Rev: 17839
This commit is contained in:
George Rhoten 2005-06-09 16:33:04 +00:00
parent 2fde203382
commit 7b2c2e71ff

View File

@ -71,7 +71,7 @@ void UTextTest::TestString(const UnicodeString &s) {
//
// Build up the mapping between code points and UTF-16 code unit indexes.
//
m * cpMap = new m[sa.length() + 1];
m *cpMap = new m[sa.length() + 1];
j = 0;
for (i=0; i<sa.length(); i=sa.moveIndex32(i, 1)) {
c = sa.char32At(i);
@ -131,6 +131,9 @@ void UTextTest::TestString(const UnicodeString &s) {
// Replaceable test
delete []cpMap;
delete []u8Map;
delete []u8String;
}