fix printf and don't release the service we're given

This commit is contained in:
alecf%netscape.com 1999-09-10 05:38:18 +00:00
Родитель 002d1eb503
Коммит 629f39c6ec
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -295,9 +295,11 @@ nsProfile::StartupWithArgs(nsICmdLineService *cmdLineArgs)
PRBool profileDirSet = PR_FALSE;
char *profstr=nsnull;
printf("Profile Manager : Profile Wizard and Manager activites : Begin\n");
Startup(nsnull);
if (cmdLineArgs)
rv = ProcessArgs(cmdLineArgs, &profileDirSet, &profstr);
@ -534,9 +536,6 @@ nsProfile::ProcessArgs(nsICmdLineService *cmdLineArgs,
if (NS_FAILED(rv))
return rv;
#if defined (NS_USING_PROFILES)
printf("Profile Manager : Profile Wizard and Manager activites : Begin\n");
#endif
return NS_OK;
}
@ -2802,7 +2801,7 @@ nsProfile::OnShutdown(const nsCID& serviceCID, nsISupports* service) {
if (serviceCID.Equals(kPrefCID)) {
unloadPrefs();
// are we supposed to do this?
nsServiceManager::ReleaseService(serviceCID, service);
//nsServiceManager::ReleaseService(serviceCID, service);
}
return NS_OK;