msxml3: Trace ref counts for all dom objects.
This commit is contained in:
parent
46ae113e71
commit
d05435167a
|
@ -89,16 +89,18 @@ static ULONG WINAPI domattr_AddRef(
|
||||||
IXMLDOMAttribute *iface )
|
IXMLDOMAttribute *iface )
|
||||||
{
|
{
|
||||||
domattr *This = impl_from_IXMLDOMAttribute( iface );
|
domattr *This = impl_from_IXMLDOMAttribute( iface );
|
||||||
return InterlockedIncrement( &This->ref );
|
ULONG ref = InterlockedIncrement( &This->ref );
|
||||||
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ULONG WINAPI domattr_Release(
|
static ULONG WINAPI domattr_Release(
|
||||||
IXMLDOMAttribute *iface )
|
IXMLDOMAttribute *iface )
|
||||||
{
|
{
|
||||||
domattr *This = impl_from_IXMLDOMAttribute( iface );
|
domattr *This = impl_from_IXMLDOMAttribute( iface );
|
||||||
ULONG ref;
|
ULONG ref = InterlockedDecrement( &This->ref );
|
||||||
|
|
||||||
ref = InterlockedDecrement( &This->ref );
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
if ( ref == 0 )
|
if ( ref == 0 )
|
||||||
{
|
{
|
||||||
destroy_xmlnode(&This->node);
|
destroy_xmlnode(&This->node);
|
||||||
|
|
|
@ -89,16 +89,18 @@ static ULONG WINAPI domcdata_AddRef(
|
||||||
IXMLDOMCDATASection *iface )
|
IXMLDOMCDATASection *iface )
|
||||||
{
|
{
|
||||||
domcdata *This = impl_from_IXMLDOMCDATASection( iface );
|
domcdata *This = impl_from_IXMLDOMCDATASection( iface );
|
||||||
return InterlockedIncrement( &This->ref );
|
ULONG ref = InterlockedIncrement( &This->ref );
|
||||||
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ULONG WINAPI domcdata_Release(
|
static ULONG WINAPI domcdata_Release(
|
||||||
IXMLDOMCDATASection *iface )
|
IXMLDOMCDATASection *iface )
|
||||||
{
|
{
|
||||||
domcdata *This = impl_from_IXMLDOMCDATASection( iface );
|
domcdata *This = impl_from_IXMLDOMCDATASection( iface );
|
||||||
ULONG ref;
|
ULONG ref = InterlockedDecrement( &This->ref );
|
||||||
|
|
||||||
ref = InterlockedDecrement( &This->ref );
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
if ( ref == 0 )
|
if ( ref == 0 )
|
||||||
{
|
{
|
||||||
destroy_xmlnode(&This->node);
|
destroy_xmlnode(&This->node);
|
||||||
|
|
|
@ -89,16 +89,18 @@ static ULONG WINAPI domcomment_AddRef(
|
||||||
IXMLDOMComment *iface )
|
IXMLDOMComment *iface )
|
||||||
{
|
{
|
||||||
domcomment *This = impl_from_IXMLDOMComment( iface );
|
domcomment *This = impl_from_IXMLDOMComment( iface );
|
||||||
return InterlockedIncrement( &This->ref );
|
ULONG ref = InterlockedIncrement( &This->ref );
|
||||||
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ULONG WINAPI domcomment_Release(
|
static ULONG WINAPI domcomment_Release(
|
||||||
IXMLDOMComment *iface )
|
IXMLDOMComment *iface )
|
||||||
{
|
{
|
||||||
domcomment *This = impl_from_IXMLDOMComment( iface );
|
domcomment *This = impl_from_IXMLDOMComment( iface );
|
||||||
ULONG ref;
|
ULONG ref = InterlockedDecrement( &This->ref );
|
||||||
|
|
||||||
ref = InterlockedDecrement( &This->ref );
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
if ( ref == 0 )
|
if ( ref == 0 )
|
||||||
{
|
{
|
||||||
destroy_xmlnode(&This->node);
|
destroy_xmlnode(&This->node);
|
||||||
|
|
|
@ -88,16 +88,18 @@ static ULONG WINAPI domfrag_AddRef(
|
||||||
IXMLDOMDocumentFragment *iface )
|
IXMLDOMDocumentFragment *iface )
|
||||||
{
|
{
|
||||||
domfrag *This = impl_from_IXMLDOMDocumentFragment( iface );
|
domfrag *This = impl_from_IXMLDOMDocumentFragment( iface );
|
||||||
return InterlockedIncrement( &This->ref );
|
ULONG ref = InterlockedIncrement( &This->ref );
|
||||||
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ULONG WINAPI domfrag_Release(
|
static ULONG WINAPI domfrag_Release(
|
||||||
IXMLDOMDocumentFragment *iface )
|
IXMLDOMDocumentFragment *iface )
|
||||||
{
|
{
|
||||||
domfrag *This = impl_from_IXMLDOMDocumentFragment( iface );
|
domfrag *This = impl_from_IXMLDOMDocumentFragment( iface );
|
||||||
ULONG ref;
|
ULONG ref = InterlockedDecrement( &This->ref );
|
||||||
|
|
||||||
ref = InterlockedDecrement( &This->ref );
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
if ( ref == 0 )
|
if ( ref == 0 )
|
||||||
{
|
{
|
||||||
destroy_xmlnode(&This->node);
|
destroy_xmlnode(&This->node);
|
||||||
|
|
|
@ -91,9 +91,7 @@ static ULONG WINAPI domdoctype_AddRef(
|
||||||
{
|
{
|
||||||
domdoctype *This = impl_from_IXMLDOMDocumentType( iface );
|
domdoctype *This = impl_from_IXMLDOMDocumentType( iface );
|
||||||
LONG ref = InterlockedIncrement(&This->ref);
|
LONG ref = InterlockedIncrement(&This->ref);
|
||||||
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
TRACE("(%p) ref=%d\n", This, ref);
|
|
||||||
|
|
||||||
return ref;
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,7 +101,7 @@ static ULONG WINAPI domdoctype_Release(
|
||||||
domdoctype *This = impl_from_IXMLDOMDocumentType( iface );
|
domdoctype *This = impl_from_IXMLDOMDocumentType( iface );
|
||||||
ULONG ref = InterlockedDecrement(&This->ref);
|
ULONG ref = InterlockedDecrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p) ref=%d\n", This, ref);
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
|
|
||||||
if(!ref) {
|
if(!ref) {
|
||||||
destroy_xmlnode(&This->node);
|
destroy_xmlnode(&This->node);
|
||||||
|
|
|
@ -83,16 +83,18 @@ static ULONG WINAPI dimimpl_AddRef(
|
||||||
IXMLDOMImplementation *iface )
|
IXMLDOMImplementation *iface )
|
||||||
{
|
{
|
||||||
domimpl *This = impl_from_IXMLDOMImplementation( iface );
|
domimpl *This = impl_from_IXMLDOMImplementation( iface );
|
||||||
return InterlockedIncrement( &This->ref );
|
ULONG ref = InterlockedIncrement( &This->ref );
|
||||||
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ULONG WINAPI dimimpl_Release(
|
static ULONG WINAPI dimimpl_Release(
|
||||||
IXMLDOMImplementation *iface )
|
IXMLDOMImplementation *iface )
|
||||||
{
|
{
|
||||||
domimpl *This = impl_from_IXMLDOMImplementation( iface );
|
domimpl *This = impl_from_IXMLDOMImplementation( iface );
|
||||||
ULONG ref;
|
ULONG ref = InterlockedDecrement( &This->ref );
|
||||||
|
|
||||||
ref = InterlockedDecrement( &This->ref );
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
if ( ref == 0 )
|
if ( ref == 0 )
|
||||||
{
|
{
|
||||||
heap_free( This );
|
heap_free( This );
|
||||||
|
|
|
@ -100,7 +100,7 @@ static ULONG WINAPI domelem_AddRef(
|
||||||
domelem *This = impl_from_IXMLDOMElement( iface );
|
domelem *This = impl_from_IXMLDOMElement( iface );
|
||||||
LONG ref = InterlockedIncrement(&This->ref);
|
LONG ref = InterlockedIncrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p) ref=%d\n", This, ref);
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
|
|
||||||
return ref;
|
return ref;
|
||||||
}
|
}
|
||||||
|
@ -111,7 +111,7 @@ static ULONG WINAPI domelem_Release(
|
||||||
domelem *This = impl_from_IXMLDOMElement( iface );
|
domelem *This = impl_from_IXMLDOMElement( iface );
|
||||||
ULONG ref = InterlockedDecrement(&This->ref);
|
ULONG ref = InterlockedDecrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p) ref=%d\n", This, ref);
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
|
|
||||||
if(!ref) {
|
if(!ref) {
|
||||||
destroy_xmlnode(&This->node);
|
destroy_xmlnode(&This->node);
|
||||||
|
|
|
@ -88,16 +88,18 @@ static ULONG WINAPI entityref_AddRef(
|
||||||
IXMLDOMEntityReference *iface )
|
IXMLDOMEntityReference *iface )
|
||||||
{
|
{
|
||||||
entityref *This = impl_from_IXMLDOMEntityReference( iface );
|
entityref *This = impl_from_IXMLDOMEntityReference( iface );
|
||||||
return InterlockedIncrement( &This->ref );
|
ULONG ref = InterlockedIncrement( &This->ref );
|
||||||
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ULONG WINAPI entityref_Release(
|
static ULONG WINAPI entityref_Release(
|
||||||
IXMLDOMEntityReference *iface )
|
IXMLDOMEntityReference *iface )
|
||||||
{
|
{
|
||||||
entityref *This = impl_from_IXMLDOMEntityReference( iface );
|
entityref *This = impl_from_IXMLDOMEntityReference( iface );
|
||||||
ULONG ref;
|
ULONG ref = InterlockedDecrement( &This->ref );
|
||||||
|
|
||||||
ref = InterlockedDecrement( &This->ref );
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
if ( ref == 0 )
|
if ( ref == 0 )
|
||||||
{
|
{
|
||||||
destroy_xmlnode(&This->node);
|
destroy_xmlnode(&This->node);
|
||||||
|
|
|
@ -93,16 +93,18 @@ static ULONG WINAPI xmlnodelist_AddRef(
|
||||||
IXMLDOMNodeList *iface )
|
IXMLDOMNodeList *iface )
|
||||||
{
|
{
|
||||||
xmlnodelist *This = impl_from_IXMLDOMNodeList( iface );
|
xmlnodelist *This = impl_from_IXMLDOMNodeList( iface );
|
||||||
return InterlockedIncrement( &This->ref );
|
ULONG ref = InterlockedIncrement( &This->ref );
|
||||||
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ULONG WINAPI xmlnodelist_Release(
|
static ULONG WINAPI xmlnodelist_Release(
|
||||||
IXMLDOMNodeList *iface )
|
IXMLDOMNodeList *iface )
|
||||||
{
|
{
|
||||||
xmlnodelist *This = impl_from_IXMLDOMNodeList( iface );
|
xmlnodelist *This = impl_from_IXMLDOMNodeList( iface );
|
||||||
ULONG ref;
|
ULONG ref = InterlockedDecrement( &This->ref );
|
||||||
|
|
||||||
ref = InterlockedDecrement( &This->ref );
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
if ( ref == 0 )
|
if ( ref == 0 )
|
||||||
{
|
{
|
||||||
xmldoc_release( This->parent->doc );
|
xmldoc_release( This->parent->doc );
|
||||||
|
|
|
@ -95,16 +95,18 @@ static ULONG WINAPI xmlnodemap_AddRef(
|
||||||
IXMLDOMNamedNodeMap *iface )
|
IXMLDOMNamedNodeMap *iface )
|
||||||
{
|
{
|
||||||
xmlnodemap *This = impl_from_IXMLDOMNamedNodeMap( iface );
|
xmlnodemap *This = impl_from_IXMLDOMNamedNodeMap( iface );
|
||||||
return InterlockedIncrement( &This->ref );
|
ULONG ref = InterlockedIncrement( &This->ref );
|
||||||
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ULONG WINAPI xmlnodemap_Release(
|
static ULONG WINAPI xmlnodemap_Release(
|
||||||
IXMLDOMNamedNodeMap *iface )
|
IXMLDOMNamedNodeMap *iface )
|
||||||
{
|
{
|
||||||
xmlnodemap *This = impl_from_IXMLDOMNamedNodeMap( iface );
|
xmlnodemap *This = impl_from_IXMLDOMNamedNodeMap( iface );
|
||||||
ULONG ref;
|
ULONG ref = InterlockedDecrement( &This->ref );
|
||||||
|
|
||||||
ref = InterlockedDecrement( &This->ref );
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
if ( ref == 0 )
|
if ( ref == 0 )
|
||||||
{
|
{
|
||||||
IXMLDOMNode_Release( This->node );
|
IXMLDOMNode_Release( This->node );
|
||||||
|
|
|
@ -88,16 +88,18 @@ static ULONG WINAPI dom_pi_AddRef(
|
||||||
IXMLDOMProcessingInstruction *iface )
|
IXMLDOMProcessingInstruction *iface )
|
||||||
{
|
{
|
||||||
dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
|
dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
|
||||||
return InterlockedIncrement( &This->ref );
|
ULONG ref = InterlockedIncrement( &This->ref );
|
||||||
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ULONG WINAPI dom_pi_Release(
|
static ULONG WINAPI dom_pi_Release(
|
||||||
IXMLDOMProcessingInstruction *iface )
|
IXMLDOMProcessingInstruction *iface )
|
||||||
{
|
{
|
||||||
dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
|
dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
|
||||||
ULONG ref;
|
ULONG ref = InterlockedDecrement( &This->ref );
|
||||||
|
|
||||||
ref = InterlockedDecrement( &This->ref );
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
if ( ref == 0 )
|
if ( ref == 0 )
|
||||||
{
|
{
|
||||||
destroy_xmlnode(&This->node);
|
destroy_xmlnode(&This->node);
|
||||||
|
|
|
@ -90,16 +90,18 @@ static ULONG WINAPI domtext_AddRef(
|
||||||
IXMLDOMText *iface )
|
IXMLDOMText *iface )
|
||||||
{
|
{
|
||||||
domtext *This = impl_from_IXMLDOMText( iface );
|
domtext *This = impl_from_IXMLDOMText( iface );
|
||||||
return InterlockedIncrement( &This->ref );
|
ULONG ref = InterlockedIncrement( &This->ref );
|
||||||
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ULONG WINAPI domtext_Release(
|
static ULONG WINAPI domtext_Release(
|
||||||
IXMLDOMText *iface )
|
IXMLDOMText *iface )
|
||||||
{
|
{
|
||||||
domtext *This = impl_from_IXMLDOMText( iface );
|
domtext *This = impl_from_IXMLDOMText( iface );
|
||||||
ULONG ref;
|
ULONG ref = InterlockedDecrement( &This->ref );
|
||||||
|
|
||||||
ref = InterlockedDecrement( &This->ref );
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
if ( ref == 0 )
|
if ( ref == 0 )
|
||||||
{
|
{
|
||||||
destroy_xmlnode(&This->node);
|
destroy_xmlnode(&This->node);
|
||||||
|
|
Loading…
Reference in New Issue