msxml3: Extend traces for inc/dec refs on libxml2 documents.

This commit is contained in:
Nikolay Sivov 2010-06-21 13:36:13 +04:00 committed by Alexandre Julliard
parent 858ae060fd
commit 94e88e6712
1 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ static xmlDocPtr doparse( char *ptr, int len, const char *encoding )
LONG xmldoc_add_ref(xmlDocPtr doc) LONG xmldoc_add_ref(xmlDocPtr doc)
{ {
LONG ref = InterlockedIncrement(&priv_from_xmlDocPtr(doc)->refs); LONG ref = InterlockedIncrement(&priv_from_xmlDocPtr(doc)->refs);
TRACE("%d\n", ref); TRACE("(%p)->(%d)\n", doc, ref);
return ref; return ref;
} }
@ -166,7 +166,7 @@ LONG xmldoc_release(xmlDocPtr doc)
{ {
xmldoc_priv *priv = priv_from_xmlDocPtr(doc); xmldoc_priv *priv = priv_from_xmlDocPtr(doc);
LONG ref = InterlockedDecrement(&priv->refs); LONG ref = InterlockedDecrement(&priv->refs);
TRACE("%d\n", ref); TRACE("(%p)->(%d)\n", doc, ref);
if(ref == 0) if(ref == 0)
{ {
orphan_entry *orphan, *orphan2; orphan_entry *orphan, *orphan2;