Bug 1755961 - Delete the format cache in AppDateTimeFormat; r=platform-i18n-reviewers,dminor

Differential Revision: https://phabricator.services.mozilla.com/D142470
This commit is contained in:
Greg Tatum 2022-03-30 21:10:46 +00:00
parent 9669714f16
commit 3a2de7b49d

View File

@ -255,6 +255,7 @@ void AppDateTimeFormat::Shutdown() {
/*static*/
void AppDateTimeFormat::ClearLocaleCache() {
MOZ_ASSERT(NS_IsMainThread());
DeleteCache();
delete sLocale;
sLocale = nullptr;
}