NS_ADDREF(*aResult);
NS_ADDREF(*aResult = result);    nsCOMPtr<nsIObserverService> os = do_GetService(NS_OBSERVERSERVICE_CONTRACTID); if (os) os->AddObserver(result, NS_MEMORY_PRESSURE_TOPIC);
NS_NewXBLService(nsIXBLService** aResult){  *aResult = new nsXBLService;  if (!*aResult)    return NS_ERROR_OUT_OF_MEMORY;  NS_ADDREF(*aResult);  return NS_OK;}