ICU-5955 Fix a memory leak and a compiler warning.

X-SVN-Rev: 23033
This commit is contained in:
George Rhoten 2007-12-06 17:12:29 +00:00
parent 2297d8ce9c
commit 16606cd531

View File

@ -469,9 +469,9 @@ ConversionTest::TestGetUnicodeSet() {
U_CDECL_BEGIN U_CDECL_BEGIN
static void U_CALLCONV static void U_CALLCONV
getUnicodeSetCallback(const void *context, getUnicodeSetCallback(const void *context,
UConverterFromUnicodeArgs *fromUArgs, UConverterFromUnicodeArgs * /*fromUArgs*/,
const UChar* codeUnits, const UChar* /*codeUnits*/,
int32_t length, int32_t /*length*/,
UChar32 codePoint, UChar32 codePoint,
UConverterCallbackReason reason, UConverterCallbackReason reason,
UErrorCode *pErrorCode) { UErrorCode *pErrorCode) {
@ -638,6 +638,7 @@ ConversionTest::TestGetUnicodeSet2() {
} }
} }
} }
ucnv_close(cnv);
} }
delete [] s0; delete [] s0;