зеркало из https://github.com/mozilla/gecko-dev.git
fix for #49424 - don't cache the string bundle if the file doesn't load
r=tao a=alecf
This commit is contained in:
Родитель
a37e024a8f
Коммит
d8a4730920
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче