ICU-5427 Fix some memory leaks.

X-SVN-Rev: 21289
This commit is contained in:
George Rhoten 2007-03-18 22:17:36 +00:00
parent 9af67e3e22
commit f4d59b3b52

View File

@ -564,10 +564,12 @@ void UTextTest::TestAccess(const UnicodeString &us, UText *ut, int cpCount, m *c
status = U_ZERO_ERROR;
utext_setNativeIndex(shallowClone, 0);
UText *deepClone = utext_clone(NULL, shallowClone, TRUE, FALSE, &status);
utext_close(shallowClone);
if (status != U_UNSUPPORTED_ERROR) {
TEST_SUCCESS(status);
TestAccessNoClone(us, deepClone, cpCount, cpMap);
}
utext_close(deepClone);
}
@ -1388,4 +1390,7 @@ void UTextTest::Ticket5560() {
c = utext_next32(&ut2);
TEST_ASSERT(c == 0x43); // c == 'C'
utext_close(&ut1);
utext_close(&ut2);
}