text->Release();
FinalizeText(JSContext *cx, JSObject *obj){  nsIDOMText *text = (nsIDOMText*)JS_GetPrivate(cx, obj);  NS_ASSERTION(nsnull != text, "null pointer");    // get the js object  nsIScriptObjectOwner *owner = nsnull;  if (NS_OK == text->QueryInterface(kIScriptObjectOwnerIID, (void**)&owner)) {    owner->ResetScriptObject();    NS_RELEASE(owner);  }  text->Release();}