From c026fe4808593aa96d7e30f77e540dd770de5093 Mon Sep 17 00:00:00 2001 From: Andy Heninger Date: Tue, 14 Mar 2017 18:10:59 +0000 Subject: [PATCH] ICU-12674 Add missing cleanup registration in Normalizer2; fixes memory leak. X-SVN-Rev: 39794 --- icu4c/source/common/loadednormalizer2impl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/icu4c/source/common/loadednormalizer2impl.cpp b/icu4c/source/common/loadednormalizer2impl.cpp index c995ca1ea71..bd37b95eadc 100644 --- a/icu4c/source/common/loadednormalizer2impl.cpp +++ b/icu4c/source/common/loadednormalizer2impl.cpp @@ -232,6 +232,7 @@ Normalizer2::getInstance(const char *packageName, } } if(allModes==NULL) { + ucln_common_registerCleanup(UCLN_COMMON_LOADED_NORMALIZER2, uprv_loaded_normalizer2_cleanup); LocalPointer localAllModes( Norm2AllModes::createInstance(packageName, name, errorCode)); if(U_SUCCESS(errorCode)) { -- 2.40.0