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(
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
(
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
)
{
destroy_xmlnode
(
&
This
->
node
);
...
...
dlls/msxml3/cdata.c
View file @
d0543516
...
...
@@ -89,16 +89,18 @@ static ULONG WINAPI domcdata_AddRef(
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
(
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
)
{
destroy_xmlnode
(
&
This
->
node
);
...
...
dlls/msxml3/comment.c
View file @
d0543516
...
...
@@ -89,16 +89,18 @@ static ULONG WINAPI domcomment_AddRef(
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
(
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
)
{
destroy_xmlnode
(
&
This
->
node
);
...
...
dlls/msxml3/docfrag.c
View file @
d0543516
...
...
@@ -88,16 +88,18 @@ static ULONG WINAPI domfrag_AddRef(
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
(
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
)
{
destroy_xmlnode
(
&
This
->
node
);
...
...
dlls/msxml3/doctype.c
View file @
d0543516
...
...
@@ -91,9 +91,7 @@ static ULONG WINAPI domdoctype_AddRef(
{
domdoctype
*
This
=
impl_from_IXMLDOMDocumentType
(
iface
);
LONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
ref
);
return
ref
;
}
...
...
@@ -103,7 +101,7 @@ static ULONG WINAPI domdoctype_Release(
domdoctype
*
This
=
impl_from_IXMLDOMDocumentType
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)
ref=%d
\n
"
,
This
,
ref
);
TRACE
(
"(%p)
->(%d)
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
destroy_xmlnode
(
&
This
->
node
);
...
...
dlls/msxml3/domimpl.c
View file @
d0543516
...
...
@@ -83,16 +83,18 @@ static ULONG WINAPI dimimpl_AddRef(
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
(
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
)
{
heap_free
(
This
);
...
...
dlls/msxml3/element.c
View file @
d0543516
...
...
@@ -100,7 +100,7 @@ static ULONG WINAPI domelem_AddRef(
domelem
*
This
=
impl_from_IXMLDOMElement
(
iface
);
LONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)
ref=%d
\n
"
,
This
,
ref
);
TRACE
(
"(%p)
->(%d)
\n
"
,
This
,
ref
);
return
ref
;
}
...
...
@@ -111,7 +111,7 @@ static ULONG WINAPI domelem_Release(
domelem
*
This
=
impl_from_IXMLDOMElement
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)
ref=%d
\n
"
,
This
,
ref
);
TRACE
(
"(%p)
->(%d)
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
destroy_xmlnode
(
&
This
->
node
);
...
...
dlls/msxml3/entityref.c
View file @
d0543516
...
...
@@ -88,16 +88,18 @@ static ULONG WINAPI entityref_AddRef(
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
(
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
)
{
destroy_xmlnode
(
&
This
->
node
);
...
...
dlls/msxml3/nodelist.c
View file @
d0543516
...
...
@@ -93,16 +93,18 @@ static ULONG WINAPI xmlnodelist_AddRef(
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
(
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
)
{
xmldoc_release
(
This
->
parent
->
doc
);
...
...
dlls/msxml3/nodemap.c
View file @
d0543516
...
...
@@ -95,16 +95,18 @@ static ULONG WINAPI xmlnodemap_AddRef(
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
(
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
)
{
IXMLDOMNode_Release
(
This
->
node
);
...
...
dlls/msxml3/pi.c
View file @
d0543516
...
...
@@ -88,16 +88,18 @@ static ULONG WINAPI dom_pi_AddRef(
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
(
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
)
{
destroy_xmlnode
(
&
This
->
node
);
...
...
dlls/msxml3/text.c
View file @
d0543516
...
...
@@ -90,16 +90,18 @@ static ULONG WINAPI domtext_AddRef(
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
(
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
)
{
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