nsHistoryEntry * hEntry=nsnull; nsHistoryEntry * parent=nsnull;
nsHistoryEntry::DestroyChildren() {   nsHistoryEntry * hEntry=nsnull;   nsHistoryEntry * parent=nsnull;  PRInt32 i, n;  n = mChildren.Count();  for (i = 0; i < n; i++) {    nsHistoryEntry* child = (nsHistoryEntry *) mChildren.ElementAt(i);    child->SetParent(nsnull);    delete child;    mChildCount--;  }  mChildren.Clear();  return NS_OK;}