ICU-6911 delete selectformat object after use.

X-SVN-Rev: 27832
This commit is contained in:
Michael Ow 2010-03-12 05:44:13 +00:00
parent a24dde121f
commit a22a3ac92c

View File

@ -115,6 +115,9 @@ void SelectFormatTest::selectFormatUnitTest(/*char *par*/)
}
}
delete selFmt;
selFmt = NULL;
logln("SelectFormat Unit Test : Creating format object for Testing applying various patterns");
status = U_ZERO_ERROR;
selFmt = new SelectFormat( SIMPLE_PATTERN , status);
@ -164,6 +167,9 @@ void SelectFormatTest::selectFormatUnitTest(/*char *par*/)
"*Keyword-_" //Starts with a sepial character not allowed
};
delete selFmt;
selFmt = NULL;
selFmt = new SelectFormat( SIMPLE_PATTERN , status);
for (int32_t i = 0; i< 6; i++ ){
status = U_ZERO_ERROR;