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