URLKey  key(aLoadData->mURL); Cleanup(key, aLoadData);
CSSLoaderImpl::DidLoadStyle(nsIUnicharStreamLoader* aLoader,                            nsString& aStyleData,                            SheetLoadData* aLoadData,                            nsresult aStatus){  if (NS_SUCCEEDED(aStatus) && (0 < aStyleData.Length()) && (mDocument)) {    nsresult result;    nsIUnicharInputStream* uin = nsnull;    // wrap the string with the CSS data up in a unicode input stream.    result = NS_NewStringUnicharInputStream(&uin, new nsString(aStyleData));    if (NS_SUCCEEDED(result)) {      // XXX We have no way of indicating failure. Silently fail?      PRBool completed;      nsICSSStyleSheet* sheet;      result = ParseSheet(uin, aLoadData, completed, sheet);      NS_IF_RELEASE(sheet);      NS_RELEASE(uin);    }    else {      URLKey  key(aLoadData->mURL);      Cleanup(key, aLoadData);    }  }  else {  // load failed, cleanup        URLKey  key(aLoadData->mURL);    Cleanup(key, aLoadData);    // Dump error message to console.    const char *url;    if (nsnull != aLoadData->mURL)       aLoadData->mURL->GetSpec(&url);    else      url = "";          cerr << "CSSLoaderImpl::DidLoadStyle: Load of URL '" << url       << "' failed.  Error code: " << NS_ERROR_GET_CODE(aStatus) << "\n";  }}