fix for #49424 - don't cache the string bundle if the file doesn't load

r=tao a=alecf
This commit is contained in:
alecf%netscape.com 2000-11-14 00:15:43 +00:00
Родитель a37e024a8f
Коммит d8a4730920
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -768,6 +768,10 @@ nsStringBundleService::getStringBundle(const char *aURLSpec,
// hasn't been cached, so insert it into the hash table
nsStringBundle* bundle = new nsStringBundle(aURLSpec, nsnull, &ret);
if (NS_FAILED(ret)) {
delete bundle;
return NS_ERROR_FAILURE;
}
if (!bundle) {
return NS_ERROR_OUT_OF_MEMORY;
}