ICU-5190 Test and fix some allocation issues from ucol_safeClone

X-SVN-Rev: 19634
This commit is contained in:
George Rhoten 2006-05-21 22:44:14 +00:00
parent 3ec1127306
commit 7b15f0e402

View File

@ -445,7 +445,7 @@ ucol_safeClone(const UCollator *coll, void *stackBuffer, int32_t * pBufferSize,
}
stackBuffer = (void *)stackBufferChars;
if (!coll->freeImageOnClose) {
if (coll->freeImageOnClose) {
UErrorCode tempStatus = U_ZERO_ERROR;
imageSize = ucol_cloneBinary(coll, NULL, 0, &tempStatus);
}