NS_IF_RELEASE(kXULContentsGenerated);
NS_IF_RELEASE(kXULContentsGeneratedAtom);
RDFElementImpl::~RDFElementImpl(){    NS_IF_RELEASE(mAttributes);    //NS_IF_RELEASE(mDocument); // not refcounted    //NS_IF_RELEASE(mParent)    // not refcounted    NS_IF_RELEASE(mTag);    NS_IF_RELEASE(mListenerManager);    if (mChildren) {        // Force child's parent to be null. This ensures that we don't        // have dangling pointers if a child gets leaked.        PRUint32 cnt;        mChildren->Count(&cnt);        for (PRInt32 i = cnt - 1; i >= 0; --i) {            nsISupports* isupports = mChildren->ElementAt(i);            nsCOMPtr<nsIContent> child = do_QueryInterface(isupports);            NS_RELEASE(isupports);            child->SetParent(nsnull);        }        NS_RELEASE(mChildren);    }    // Release our broadcast listeners    if (mBroadcastListeners != nsnull)    {        PRInt32 count = mBroadcastListeners->Count();        for (PRInt32 i = 0; i < count; i++) {            XULBroadcastListener* xulListener = (XULBroadcastListener*)mBroadcastListeners->ElementAt(0);            RemoveBroadcastListener("*", xulListener->mListener);        }    }    // XXX This never even gets set! It's unused right now! This is not good.    if (mBroadcaster != nsnull)    {        mBroadcaster->RemoveBroadcastListener("*", this);    }    NS_IF_RELEASE(mController);    // Delete the aggregated interface, if one exists.    delete mInnerXULElement;    if (--gRefCnt == 0) {        if (gRDFService) {            nsServiceManager::ReleaseService(kRDFServiceCID, gRDFService);            gRDFService = nsnull;        }        NS_IF_RELEASE(kIdAtom);        NS_IF_RELEASE(kRefAtom);        NS_IF_RELEASE(kClassAtom);        NS_IF_RELEASE(kStyleAtom);        NS_IF_RELEASE(kLazyContentAtom);        NS_IF_RELEASE(kTreeAtom);        NS_IF_RELEASE(kPopupAtom);        NS_IF_RELEASE(kContextAtom);        NS_IF_RELEASE(kTooltipAtom);        NS_IF_RELEASE(kObservesAtom);        NS_IF_RELEASE(kXULContentsGenerated);        NS_IF_RELEASE(gNameSpaceManager);        EventHandlerMapEntry* entry = kEventHandlerMap;        while (entry->mAttributeName) {            NS_IF_RELEASE(entry->mAttributeAtom);            ++entry;        }    }}