ICU-5161 Fix some memory leaks.

X-SVN-Rev: 20026
This commit is contained in:
George Rhoten 2006-08-11 02:48:23 +00:00
parent cb5156e5b5
commit 06ab467b86
2 changed files with 4 additions and 1 deletions

View file

@ -2220,6 +2220,9 @@ void CollationAPITest::TestClone() {
if(*c1 == *c2){
errln("The cloned objects refer to same data");
}
delete c0;
delete c1;
delete c2;
}
void CollationAPITest::dump(UnicodeString msg, RuleBasedCollator* c, UErrorCode& status) {

View file

@ -91,7 +91,7 @@ void DateFormatRoundTripTest::TestCentury()
SimpleDateFormat fmt(pattern, locale, status);
if(!assertSuccess("trying to construct", status))return;
UDate date[] = {-55018555891590.05, 0, 0};
UnicodeString *result = new UnicodeString[2];
UnicodeString result[2];
fmt.format(date[0], result[0]);
date[1] = fmt.parse(result[0], status);