diff --git a/intl/locale/src/nsLanguageAtomService.cpp b/intl/locale/src/nsLanguageAtomService.cpp index 2dfbaae3eac..24db3ce2e71 100644 --- a/intl/locale/src/nsLanguageAtomService.cpp +++ b/intl/locale/src/nsLanguageAtomService.cpp @@ -113,7 +113,7 @@ nsLanguageAtomService::LookupLanguage(const nsAString &aLanguage, nsCOMPtr langGroup = do_GetAtom(langGroupStr); // The hashtable will keep an owning reference to the atom - mLangs.Put(lowered, lang); + mLangs.Put(lowered, langGroup); lang = langGroup; }