if (gProfileDir) { delete gProfileDir; gProfileDir = nsnull; }
if (gProfileDir) { delete gProfileDir; gProfileDir = nsnull;  nsresult rv; NS_WITH_SERVICE(nsIProperties, directoryService, NS_DIRECTORY_SERVICE_PROGID, &rv); if (NS_FAILED(rv)) return rv;  directoryService->Undefine("app.profile.user.directory.5"); directoryService->Undefine("app.profile.default.user.directory.5"); directoryService->Undefine("app.profile.defaults.directory.5"); }
NS_IMETHODIMP nsFileLocator::ForgetProfileDir()//----------------------------------------------------------------------------------------{	if (gProfileDir) {		delete gProfileDir;		gProfileDir = nsnull;	}	return NS_OK;}