(*aDomSelection)->AddRef();
NS_ADDREF(*aDomSelection);
nsSelection::GetSelection(SelectionType aType, nsISelection **aDomSelection){  if (!aDomSelection)    return NS_ERROR_NULL_POINTER;  PRInt8 index = GetIndexFromSelectionType(aType);  if (index < 0)    return NS_ERROR_INVALID_ARG;  *aDomSelection = NS_REINTERPRET_CAST(nsISelection *,mDomSelections[index]);  (*aDomSelection)->AddRef();  return NS_OK;}