static ULONG WINAPI unknode_Release( IXMLDOMNode *iface ) { unknode *This = unknode_from_IXMLDOMNode( iface ); LONG ref; ref = InterlockedDecrement( &This->ref ); if(!ref) { destroy_xmlnode(&This->node); heap_free(This); } return ref; }
static ULONG WINAPI domtext_Release( IXMLDOMText *iface ) { domtext *This = impl_from_IXMLDOMText( iface ); ULONG ref = InterlockedDecrement( &This->ref ); TRACE("(%p)->(%d)\n", This, ref); if ( ref == 0 ) { destroy_xmlnode(&This->node); heap_free( This ); } return ref; }
static ULONG WINAPI dom_pi_Release( IXMLDOMProcessingInstruction *iface ) { dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface ); ULONG ref; ref = InterlockedDecrement( &This->ref ); if ( ref == 0 ) { destroy_xmlnode(&This->node); heap_free( This ); } return ref; }
static ULONG WINAPI entityref_Release( IXMLDOMEntityReference *iface ) { entityref *This = impl_from_IXMLDOMEntityReference( iface ); ULONG ref = InterlockedDecrement( &This->ref ); TRACE("(%p)->(%d)\n", This, ref); if ( ref == 0 ) { destroy_xmlnode(&This->node); heap_free( This ); } return ref; }
static ULONG WINAPI domcdata_Release( IXMLDOMCDATASection *iface ) { domcdata *This = impl_from_IXMLDOMCDATASection( iface ); ULONG ref; ref = InterlockedDecrement( &This->ref ); if ( ref == 0 ) { destroy_xmlnode(&This->node); heap_free( This ); } return ref; }
static ULONG WINAPI domdoctype_Release( IXMLDOMDocumentType *iface ) { domdoctype *This = impl_from_IXMLDOMDocumentType( iface ); ULONG ref = InterlockedDecrement(&This->ref); TRACE("(%p)->(%d)\n", This, ref); if(!ref) { destroy_xmlnode(&This->node); heap_free(This); } return ref; }