ICU-4078 Make sure that the decoupled cleanup functions are still called during a failure.
X-SVN-Rev: 16503
This commit is contained in:
parent
a04cce23fd
commit
308aba80be
@ -202,12 +202,12 @@ uprv_loadPropsData(UErrorCode *pErrorCode) {
|
||||
}
|
||||
|
||||
havePropsData=1;
|
||||
ucln_common_registerCleanup(UCLN_COMMON_UCHAR, uchar_cleanup);
|
||||
umtx_unlock(NULL);
|
||||
} else {
|
||||
dataErrorCode=*pErrorCode;
|
||||
havePropsData=-1;
|
||||
}
|
||||
ucln_common_registerCleanup(UCLN_COMMON_UCHAR, uchar_cleanup);
|
||||
|
||||
/* if a different thread set it first, then close the extra data */
|
||||
udata_close(ucp.propsData); /* NULL if it was set correctly */
|
||||
|
Loading…
Reference in New Issue
Block a user