NS_RELEASE(uin);
XULContentSinkImpl::DoneLoadingStyle(nsIUnicharStreamLoader* aLoader,                                     nsString& aData,                                     void* aRef,                                     nsresult aStatus){    nsresult rv = NS_OK;    AsyncStyleProcessingData* d = (AsyncStyleProcessingData*)aRef;    nsIUnicharInputStream* uin = nsnull;    if ((NS_OK == aStatus) && (0 < aData.Length())) {        // wrap the string with the CSS data up in a unicode        // input stream.        rv = NS_NewStringUnicharInputStream(&uin, new nsString(aData));        if (NS_OK == rv) {            // XXX We have no way of indicating failure. Silently fail?            rv = d->mSink->LoadStyleSheet(d->mURL, uin, d->mIsActive,                                           d->mTitle, d->mMedia, d->mElement);        }    }        if (d->mSink->mParser) {        d->mSink->mParser->EnableParser(PR_TRUE);    }    NS_RELEASE(d->mURL);    NS_IF_RELEASE(d->mElement);    NS_RELEASE(d->mSink);    delete d;    // We added a reference when the loader was created. This    // release should destroy it.    NS_RELEASE(aLoader);}