mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
fix for #49424 - don't cache the string bundle if the file doesn't load
r=tao a=alecf
This commit is contained in:
parent
a37e024a8f
commit
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user