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
96cc50e1
Commit
96cc50e1
authored
Jun 13, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/tests: Fix some leaks in tests (Valgrind).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f1079fe1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
layout.c
dlls/dwrite/tests/layout.c
+7
-0
No files found.
dlls/dwrite/tests/layout.c
View file @
96cc50e1
...
...
@@ -2090,6 +2090,8 @@ todo_wine
ok
(
metrics
[
4
].
isWhitespace
==
0
,
"got %d
\n
"
,
metrics
[
4
].
isWhitespace
);
ok
(
metrics
[
5
].
isWhitespace
==
1
,
"got %d
\n
"
,
metrics
[
5
].
isWhitespace
);
IDWriteTextLayout_Release
(
layout
);
IDWriteInlineObject_Release
(
trimm
);
IDWriteTextFormat_Release
(
format
);
IDWriteFactory_Release
(
factory
);
...
...
@@ -3298,6 +3300,7 @@ static void test_GetLineMetrics(void)
ok
(
metrics
[
0
].
isTrimmed
==
FALSE
,
"got %d
\n
"
,
metrics
[
0
].
isTrimmed
);
IDWriteTextLayout_Release
(
layout
);
IDWriteTextFormat_Release
(
format
);
/* Test line height and baseline calculation */
hr
=
IDWriteFactory_GetSystemFontCollection
(
factory
,
&
syscollection
,
FALSE
);
...
...
@@ -3619,6 +3622,8 @@ static void test_SetTextAlignment(void)
else
win_skip
(
"IDWriteTextFormat1 is not supported
\n
"
);
IDWriteTextLayout_Release
(
layout
);
for
(
i
=
0
;
i
<
sizeof
(
stringsW
)
/
sizeof
(
stringsW
[
0
]);
i
++
)
{
FLOAT
text_width
;
...
...
@@ -4653,6 +4658,8 @@ static void test_SetLastLineWrapping(void)
hr
=
IDWriteTextLayout2_SetLastLineWrapping
(
layout2
,
TRUE
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
IDWriteTextLayout2_Release
(
layout2
);
IDWriteTextFormat1_Release
(
format1
);
IDWriteFactory_Release
(
factory
);
}
...
...
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