if (--gRefCnt == 0) { NS_IF_RELEASE(kAttributeAtom); NS_IF_RELEASE(kElementAtom); NS_IF_RELEASE(kIdAtom); NS_IF_RELEASE(kObservesAtom); }
XULDocumentImpl::~XULDocumentImpl(){    NS_IF_RELEASE(mDocumentDataSource);    NS_IF_RELEASE(mLocalDataSource);    if (mRDFService) {        nsServiceManager::ReleaseService(kRDFServiceCID, mRDFService);        mRDFService = nsnull;    }    // mParentDocument is never refcounted    NS_IF_RELEASE(mBuilders);    NS_IF_RELEASE(mXULBuilder);    NS_IF_RELEASE(mSelection);    NS_IF_RELEASE(mScriptContextOwner);    NS_IF_RELEASE(mAttrStyleSheet);    NS_IF_RELEASE(mRootContent);    NS_IF_RELEASE(mDocumentURLGroup);    NS_IF_RELEASE(mDocumentURL);    NS_IF_RELEASE(mArena);    NS_IF_RELEASE(mNameSpaceManager);    NS_IF_RELEASE(mParser);    NS_IF_RELEASE(mLineBreaker);}