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:
alecf%netscape.com
2000-11-14 00:15:43 +00:00
parent 9e499b5cd9
commit 16805e93f3

View File

@@ -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;
}