Skip to content

Commit

Permalink
Bug 1755961 - Delete the format cache in AppDateTimeFormat; r=platfor…
Browse files Browse the repository at this point in the history
…m-i18n-reviewers,dminor

Differential Revision: https://phabricator.services.mozilla.com/D142470
  • Loading branch information
gregtatum committed Mar 30, 2022
1 parent 406a3c9 commit d239e2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions intl/locale/AppDateTimeFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ void AppDateTimeFormat::Shutdown() {
/*static*/
void AppDateTimeFormat::ClearLocaleCache() {
MOZ_ASSERT(NS_IsMainThread());
DeleteCache();
delete sLocale;
sLocale = nullptr;
}
Expand Down

0 comments on commit d239e2c

Please sign in to comment.