Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d0543516
Commit
d0543516
authored
Mar 05, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Trace ref counts for all dom objects.
parent
46ae113e
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
54 additions
and
36 deletions
+54
-36
attribute.c
dlls/msxml3/attribute.c
+5
-3
cdata.c
dlls/msxml3/cdata.c
+5
-3
comment.c
dlls/msxml3/comment.c
+5
-3
docfrag.c
dlls/msxml3/docfrag.c
+5
-3
doctype.c
dlls/msxml3/doctype.c
+2
-4
domimpl.c
dlls/msxml3/domimpl.c
+5
-3
element.c
dlls/msxml3/element.c
+2
-2
entityref.c
dlls/msxml3/entityref.c
+5
-3
nodelist.c
dlls/msxml3/nodelist.c
+5
-3
nodemap.c
dlls/msxml3/nodemap.c
+5
-3
pi.c
dlls/msxml3/pi.c
+5
-3
text.c
dlls/msxml3/text.c
+5
-3
No files found.
dlls/msxml3/attribute.c
View file @
d0543516
...
@@ -89,16 +89,18 @@ static ULONG WINAPI domattr_AddRef(
...
@@ -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
);
...
...
dlls/msxml3/cdata.c
View file @
d0543516
...
@@ -89,16 +89,18 @@ static ULONG WINAPI domcdata_AddRef(
...
@@ -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
);
...
...
dlls/msxml3/comment.c
View file @
d0543516
...
@@ -89,16 +89,18 @@ static ULONG WINAPI domcomment_AddRef(
...
@@ -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
);
...
...
dlls/msxml3/docfrag.c
View file @
d0543516
...
@@ -88,16 +88,18 @@ static ULONG WINAPI domfrag_AddRef(
...
@@ -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
);
...
...
dlls/msxml3/doctype.c
View file @
d0543516
...
@@ -91,9 +91,7 @@ static ULONG WINAPI domdoctype_AddRef(
...
@@ -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(
...
@@ -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
);
...
...
dlls/msxml3/domimpl.c
View file @
d0543516
...
@@ -83,16 +83,18 @@ static ULONG WINAPI dimimpl_AddRef(
...
@@ -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
);
...
...
dlls/msxml3/element.c
View file @
d0543516
...
@@ -100,7 +100,7 @@ static ULONG WINAPI domelem_AddRef(
...
@@ -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(
...
@@ -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
);
...
...
dlls/msxml3/entityref.c
View file @
d0543516
...
@@ -88,16 +88,18 @@ static ULONG WINAPI entityref_AddRef(
...
@@ -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
);
...
...
dlls/msxml3/nodelist.c
View file @
d0543516
...
@@ -93,16 +93,18 @@ static ULONG WINAPI xmlnodelist_AddRef(
...
@@ -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
);
...
...
dlls/msxml3/nodemap.c
View file @
d0543516
...
@@ -95,16 +95,18 @@ static ULONG WINAPI xmlnodemap_AddRef(
...
@@ -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
);
...
...
dlls/msxml3/pi.c
View file @
d0543516
...
@@ -88,16 +88,18 @@ static ULONG WINAPI dom_pi_AddRef(
...
@@ -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
);
...
...
dlls/msxml3/text.c
View file @
d0543516
...
@@ -90,16 +90,18 @@ static ULONG WINAPI domtext_AddRef(
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment