ICU-4452 Don't call ures_close on a const UChar *.

X-SVN-Rev: 18266
This commit is contained in:
George Rhoten 2005-07-18 06:05:28 +00:00
parent c157deef23
commit b11decc48c

View File

@ -140,6 +140,7 @@ ulocdata_getDelimiter(ULocaleData *uld, ULocaleDataDelimiterType type,
}
delimiter = ures_getStringByKey(delimiterBundle, delimiterKeys[type], &len, &localStatus);
ures_close(delimiterBundle);
if ( (localStatus == U_USING_DEFAULT_WARNING) && uld->noSubstitute ) {
localStatus = U_MISSING_RESOURCE_ERROR;
@ -151,14 +152,10 @@ ulocdata_getDelimiter(ULocaleData *uld, ULocaleDataDelimiterType type,
}
if (U_FAILURE(*status)){
ures_close(delimiterBundle);
ures_close(delimiter);
return 0;
}
u_strncpy(result,delimiter,resultLength);
ures_close(delimiterBundle);
return len;
}