From 264b3f8543151156adc23fbd34d594079009963e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 15 Nov 2022 20:48:40 +0100 Subject: [PATCH] lib/icu/Collate: clear the global variable in IcuCollateFinish() To allow repeated init/finish cycles. --- src/lib/icu/Collate.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/icu/Collate.cxx b/src/lib/icu/Collate.cxx index 95c4316b3..84f54fe61 100644 --- a/src/lib/icu/Collate.cxx +++ b/src/lib/icu/Collate.cxx @@ -72,6 +72,7 @@ IcuCollateFinish() noexcept assert(collator != nullptr); ucol_close(collator); + collator = nullptr; } #endif