Bug 795395 - Don't unload the library immediately on failure on nsGSettingsService::Init(). r=karlt

We return a failure anyway, so the component manager calls our destructor where we do the unload
This commit is contained in:
Chris Coulson 2012-09-29 12:32:57 -04:00
parent a1e8ffc491
commit 8a9e5f8e12

View File

@ -312,7 +312,6 @@ nsGSettingsService::Init()
*kGSettingsSymbols[i].function =
PR_FindFunctionSymbol(gioLib, kGSettingsSymbols[i].functionName);
if (!*kGSettingsSymbols[i].function) {
PR_UnloadLibrary(gioLib);
return NS_ERROR_FAILURE;
}
}