(void)servMgr->ReleaseService(kComponentManagerCID, compMgr);
extern "C" NS_EXPORT nsresult NSRegisterSelf(nsISupports* aServMgr, const char *path){  nsresult rv;  nsCOMPtr<nsIServiceManager> servMgr(do_QueryInterface(aServMgr, &rv));  if (NS_FAILED(rv)) return rv;  nsIComponentManager* compMgr;  rv = servMgr->GetService(kComponentManagerCID,                            nsIComponentManager::GetIID(),                            (nsISupports**)&compMgr);  if (NS_FAILED(rv)) return rv;  rv = compMgr->RegisterComponent(kProfileCID, nsnull, nsnull, path,                                   PR_TRUE, PR_TRUE);  (void)servMgr->ReleaseService(kComponentManagerCID, compMgr);  return rv;}