Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
bdc67e95
Commit
bdc67e95
authored
Jan 03, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Jan 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml/tests: Fix window leaks in dom tests.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
5f031f2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
dom.c
dlls/mshtml/tests/dom.c
+3
-0
No files found.
dlls/mshtml/tests/dom.c
View file @
bdc67e95
...
@@ -1350,6 +1350,7 @@ static IHTMLDocument2 *_get_doc_node(unsigned line, IHTMLDocument2 *doc)
...
@@ -1350,6 +1350,7 @@ static IHTMLDocument2 *_get_doc_node(unsigned line, IHTMLDocument2 *doc)
hres
=
IHTMLWindow2_get_document
(
window
,
&
ret
);
hres
=
IHTMLWindow2_get_document
(
window
,
&
ret
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"get_document failed: %08lx
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"get_document failed: %08lx
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)(
ret
!=
NULL
,
"document = NULL
\n
"
);
ok_
(
__FILE__
,
line
)(
ret
!=
NULL
,
"document = NULL
\n
"
);
IHTMLWindow2_Release
(
window
);
return
ret
;
return
ret
;
}
}
...
@@ -6313,6 +6314,7 @@ static void test_location(IHTMLDocument2 *doc)
...
@@ -6313,6 +6314,7 @@ static void test_location(IHTMLDocument2 *doc)
ok
(
hres
==
S_OK
,
"get_location failed: %08lx
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"get_location failed: %08lx
\n
"
,
hres
);
ok
(
location
==
location2
,
"location != location2
\n
"
);
ok
(
location
==
location2
,
"location != location2
\n
"
);
IHTMLLocation_Release
(
location2
);
IHTMLLocation_Release
(
location2
);
IHTMLWindow2_Release
(
window
);
test_ifaces
((
IUnknown
*
)
location
,
location_iids
);
test_ifaces
((
IUnknown
*
)
location
,
location_iids
);
test_disp2
((
IUnknown
*
)
location
,
&
DIID_DispHTMLLocation
,
&
IID_IHTMLLocation
,
NULL
,
L"about:blank"
);
test_disp2
((
IUnknown
*
)
location
,
&
DIID_DispHTMLLocation
,
&
IID_IHTMLLocation
,
NULL
,
L"about:blank"
);
...
@@ -7564,6 +7566,7 @@ static void test_xhr(IHTMLDocument2 *doc)
...
@@ -7564,6 +7566,7 @@ static void test_xhr(IHTMLDocument2 *doc)
SysFreeString
(
str
);
SysFreeString
(
str
);
IHTMLWindow2_Release
(
window
);
IHTMLWindow2_Release
(
window
);
IDispatchEx_Release
(
dispex
);
}
}
static
void
test_defaults
(
IHTMLDocument2
*
doc
)
static
void
test_defaults
(
IHTMLDocument2
*
doc
)
...
...
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