delete doomed;
ContentListItem::Destroy(self->mPool, doomed);
nsElementMap::ReleaseContentList(PLHashEntry* he, PRIntn index, void* closure){    nsIRDFResource* resource =        NS_REINTERPRET_CAST(nsIRDFResource*, NS_CONST_CAST(void*, he->key));    NS_RELEASE(resource);            ContentListItem* head =        (ContentListItem*) he->value;    while (head) {        ContentListItem* doomed = head;        head = head->mNext;        delete doomed;    }    return HT_ENUMERATE_NEXT;}