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
815d0f1d
Commit
815d0f1d
authored
Jul 07, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Jul 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml/tests: Fix image element leaks in test helpers.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
26e5166c
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 @
815d0f1d
...
...
@@ -3503,6 +3503,7 @@ static void _test_img_alt(unsigned line, IUnknown *unk, const WCHAR *exalt)
ok_
(
__FILE__
,
line
)
(
!
lstrcmpW
(
alt
,
exalt
),
"unexpected alt %s
\n
"
,
wine_dbgstr_w
(
alt
));
else
ok_
(
__FILE__
,
line
)
(
!
alt
,
"alt != NULL
\n
"
);
IHTMLImgElement_Release
(
img
);
SysFreeString
(
alt
);
}
...
...
@@ -3516,6 +3517,7 @@ static void _test_img_set_alt(unsigned line, IUnknown *unk, const WCHAR *alt)
tmp
=
SysAllocString
(
alt
);
hres
=
IHTMLImgElement_put_alt
(
img
,
tmp
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"get_alt failed: %08lx
\n
"
,
hres
);
IHTMLImgElement_Release
(
img
);
SysFreeString
(
tmp
);
_test_img_alt
(
line
,
unk
,
alt
);
...
...
@@ -3536,6 +3538,7 @@ static void _test_img_align(unsigned line, IUnknown *unk, const WCHAR *align)
hres
=
IHTMLImgElement_get_align
(
img
,
&
tmp
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"put_align failed: %08lx
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)
(
!
lstrcmpW
(
tmp
,
align
),
"Expect %s, got %s
\n
"
,
wine_dbgstr_w
(
align
),
wine_dbgstr_w
(
tmp
));
IHTMLImgElement_Release
(
img
);
SysFreeString
(
tmp
);
}
...
...
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