зеркало из https://github.com/mozilla/pjs.git
Fixing registry premature closing bug. r=dp
This commit is contained in:
Родитель
85dbdb3007
Коммит
fdb1db7071
|
@ -363,11 +363,6 @@ nsExtensibleStringBundle::nsExtensibleStringBundle(const char * aRegistryKey,
|
||||||
nsIRegistry::GetIID(), (nsISupports**)®istry);
|
nsIRegistry::GetIID(), (nsISupports**)®istry);
|
||||||
if (NS_FAILED(res)) goto done;
|
if (NS_FAILED(res)) goto done;
|
||||||
|
|
||||||
// open the registry
|
|
||||||
res = registry->OpenWellKnownRegistry(
|
|
||||||
nsIRegistry::ApplicationComponentRegistry);
|
|
||||||
if (NS_FAILED(res)) goto done;
|
|
||||||
|
|
||||||
// get subtree
|
// get subtree
|
||||||
res = registry->GetSubtree(nsIRegistry::Common,
|
res = registry->GetSubtree(nsIRegistry::Common,
|
||||||
aRegistryKey, &uconvKey);
|
aRegistryKey, &uconvKey);
|
||||||
|
@ -428,7 +423,6 @@ done1:
|
||||||
// finish and clean up
|
// finish and clean up
|
||||||
done:
|
done:
|
||||||
if (registry != NULL) {
|
if (registry != NULL) {
|
||||||
registry->Close();
|
|
||||||
nsServiceManager::ReleaseService(NS_REGISTRY_PROGID, registry);
|
nsServiceManager::ReleaseService(NS_REGISTRY_PROGID, registry);
|
||||||
}
|
}
|
||||||
if (sbServ != NULL) nsServiceManager::ReleaseService(
|
if (sbServ != NULL) nsServiceManager::ReleaseService(
|
||||||
|
|
Загрузка…
Ссылка в новой задаче