зеркало из https://github.com/mozilla/pjs.git
fix bug Bug 266259 memory leak in nsCharsetConverterManager::GetCharsetLangGroupRaw()
patched by Boying Lu <brian.lu@sun.com> r=smontagu sr=neil.parkwaycc.co.uk
This commit is contained in:
Родитель
0076d95201
Коммит
3b96661b1f
|
@ -444,6 +444,7 @@ nsCharsetConverterManager::GetCharsetLangGroupRaw(const char * aCharset,
|
|||
nsIAtom** aResult)
|
||||
{
|
||||
|
||||
*aResult = nsnull;
|
||||
if (aCharset == NULL)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
|
@ -458,6 +459,8 @@ nsCharsetConverterManager::GetCharsetLangGroupRaw(const char * aCharset,
|
|||
nsAutoString langGroup;
|
||||
rv = GetBundleValue(mDataBundle, aCharset, NS_LITERAL_STRING(".LangGroup"), langGroup);
|
||||
|
||||
*aResult = NS_NewAtom(langGroup);
|
||||
if (NS_SUCCEEDED(rv))
|
||||
*aResult = NS_NewAtom(langGroup);
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче