ICU-4078 Make sure that the decoupled cleanup functions are still called during a failure.

X-SVN-Rev: 16503
This commit is contained in:
George Rhoten 2004-10-15 06:05:51 +00:00
parent a04cce23fd
commit 308aba80be

View File

@ -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 */