Fixing registry premature closing bug. r=dp

This commit is contained in:
cata%netscape.com 2000-01-06 23:18:53 +00:00
parent c9b3f95b93
commit 2c6fbfa682

View File

@ -363,11 +363,6 @@ nsExtensibleStringBundle::nsExtensibleStringBundle(const char * aRegistryKey,
nsIRegistry::GetIID(), (nsISupports**)&registry);
if (NS_FAILED(res)) goto done;
// open the registry
res = registry->OpenWellKnownRegistry(
nsIRegistry::ApplicationComponentRegistry);
if (NS_FAILED(res)) goto done;
// get subtree
res = registry->GetSubtree(nsIRegistry::Common,
aRegistryKey, &uconvKey);
@ -428,7 +423,6 @@ done1:
// finish and clean up
done:
if (registry != NULL) {
registry->Close();
nsServiceManager::ReleaseService(NS_REGISTRY_PROGID, registry);
}
if (sbServ != NULL) nsServiceManager::ReleaseService(