ICU-5190 Test and fix some allocation issues from ucol_safeClone
X-SVN-Rev: 19634
This commit is contained in:
parent
3ec1127306
commit
7b15f0e402
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user