rlist->AddRef();
NS_ADDREF(rlist);
nsresult NS_NewSelection(nsIFrameSelection **aFrameSelection){  nsSelection *rlist = new nsSelection;  if (!rlist)    return NS_ERROR_OUT_OF_MEMORY;  *aFrameSelection = (nsIFrameSelection *)rlist;  rlist->AddRef();  return NS_OK;}