ICU-770 Memory cleanup

X-SVN-Rev: 6940
This commit is contained in:
George Rhoten 2001-11-16 03:57:48 +00:00
parent 851b788de5
commit 2edff32a92

View File

@ -1694,8 +1694,14 @@ U_NAMESPACE_END
*/
U_CFUNC UBool transliterator_cleanup(void) {
TitlecaseTransliterator::cleanup();
delete registry;
registry = 0;
if (registry) {
delete registry;
registry = NULL;
}
if (specialInverses) {
delete specialInverses;
specialInverses = NULL;
}
umtx_destroy(&registryMutex);
return TRUE;
}