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
76d0cab1
Commit
76d0cab1
authored
Nov 14, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Nov 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix some memory leaks of name in test_xmldoc.
parent
56958984
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
xmldoc.c
dlls/msxml3/tests/xmldoc.c
+5
-0
No files found.
dlls/msxml3/tests/xmldoc.c
View file @
76d0cab1
...
...
@@ -127,6 +127,7 @@ static void test_xmldoc(void)
hr
=
IXMLElement_get_tagName
(
element
,
&
name
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %d
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
name
,
szBankAccount
),
"Expected BANKACCOUNT
\n
"
);
SysFreeString
(
name
);
hr
=
IXMLElement_get_children
(
element
,
&
collection
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %d
\n
"
,
hr
);
...
...
@@ -151,6 +152,7 @@ static void test_xmldoc(void)
hr
=
IXMLElement_get_tagName
(
child
,
&
name
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %d
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
name
,
szNumber
),
"Expected NUMBER
\n
"
);
SysFreeString
(
name
);
hr
=
IXMLElement_get_children
(
child
,
&
inner
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %d
\n
"
,
hr
);
...
...
@@ -171,6 +173,7 @@ static void test_xmldoc(void)
hr
=
IXMLElement_get_text
(
value
,
&
name
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %d
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
name
,
szNumVal
),
"Expected '1234'
\n
"
);
SysFreeString
(
name
);
IXMLElementCollection_Release
(
inner
);
...
...
@@ -196,6 +199,7 @@ static void test_xmldoc(void)
hr
=
IXMLElement_get_tagName
(
child
,
&
name
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %d
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
name
,
szName
),
"Expected NAME
\n
"
);
SysFreeString
(
name
);
hr
=
IXMLElement_get_children
(
child
,
&
inner
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %d
\n
"
,
hr
);
...
...
@@ -217,6 +221,7 @@ static void test_xmldoc(void)
hr
=
IXMLElement_get_text
(
value
,
&
name
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %d
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
name
,
szNameVal
),
"Expected 'Captain Ahab'
\n
"
);
SysFreeString
(
name
);
IXMLElementCollection_Release
(
inner
);
...
...
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