NS_ADDREF(out);
RDFXMLDataSourceImpl::Flush(void){    if (!mIsWritable || !mIsDirty)        return NS_OK;    nsresult rv;    const char* uri;    if (NS_FAILED(rv = mInner->GetURI(&uri)))        return rv;    nsFileURL url(uri);    nsFilePath path(url);    FileOutputStreamImpl* out = new FileOutputStreamImpl(path);    if (! out)        return NS_ERROR_OUT_OF_MEMORY;    if (NS_FAILED(rv = Serialize(out)))        goto done;    mIsDirty = PR_FALSE;done:    NS_IF_RELEASE(out);    return NS_OK;}