mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-12674 Add missing cleanup registration in Normalizer2; fixes memory leak.
X-SVN-Rev: 39794
This commit is contained in:
parent
7d82980d9a
commit
c026fe4808
1 changed files with 1 additions and 0 deletions
|
@ -232,6 +232,7 @@ Normalizer2::getInstance(const char *packageName,
|
|||
}
|
||||
}
|
||||
if(allModes==NULL) {
|
||||
ucln_common_registerCleanup(UCLN_COMMON_LOADED_NORMALIZER2, uprv_loaded_normalizer2_cleanup);
|
||||
LocalPointer<Norm2AllModes> localAllModes(
|
||||
Norm2AllModes::createInstance(packageName, name, errorCode));
|
||||
if(U_SUCCESS(errorCode)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue