diff --git a/intl/strres/src/nsStringBundle.cpp b/intl/strres/src/nsStringBundle.cpp index 78d871ec89b..067b2899bd0 100644 --- a/intl/strres/src/nsStringBundle.cpp +++ b/intl/strres/src/nsStringBundle.cpp @@ -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(