while (head) { ContentListItem* doomed = head; head = head->mNext; delete doomed; }
NS_RELEASE(resource);  ContentListItem* head = (ContentListItem*) he->value;
    ReleaseContentList(PLHashEntry* he, PRIntn index, void* closure)    {        ContentListItem* head =            (ContentListItem*) he->value;        while (head) {            ContentListItem* doomed = head;            head = head->mNext;            delete doomed;        }        return HT_ENUMERATE_NEXT;    }