mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
Fixing registry premature closing bug. r=dp
This commit is contained in:
parent
c9b3f95b93
commit
2c6fbfa682
@ -363,11 +363,6 @@ nsExtensibleStringBundle::nsExtensibleStringBundle(const char * aRegistryKey,
|
||||
nsIRegistry::GetIID(), (nsISupports**)®istry);
|
||||
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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user