ICU-2943 move deletion of Format until after we're done using it

X-SVN-Rev: 13716
This commit is contained in:
Steven R. Loomis 2003-11-13 19:31:11 +00:00
parent 0cd1226d84
commit dfdcd53dbe

View file

@ -446,7 +446,6 @@ void IntlCalendarTest::TestJapaneseFormat() {
}
delete fmt;
}
delete fmt2;
// Test parse with incomplete information
fmt = new SimpleDateFormat(UnicodeString("G y"), Locale("en_US@calendar=japanese"), status);
@ -480,6 +479,7 @@ void IntlCalendarTest::TestJapaneseFormat() {
}
delete cal2;
delete fmt2;
CHECK(status, "Error occured");
// Now, try in Japanese