fix for #49424 - don't cache the string bundle if the file doesn't load
r=tao a=alecf git-svn-id: svn://10.0.0.236/trunk@82591 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user