mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-19 03:34:38 +00:00
ICU-5161 Fix some memory leaks.
X-SVN-Rev: 20026
This commit is contained in:
parent
cb5156e5b5
commit
06ab467b86
2 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue