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
75b02759
Commit
75b02759
authored
Dec 14, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/tests: Fix some leaks (Valgrind).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ec2c2f9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
font.c
dlls/dwrite/tests/font.c
+8
-2
No files found.
dlls/dwrite/tests/font.c
View file @
75b02759
...
...
@@ -1778,6 +1778,7 @@ static void test_CreateFontFace(void)
UINT32
count
;
WCHAR
*
path
;
HRESULT
hr
;
ULONG
ref
;
factory
=
create_factory
();
...
...
@@ -1864,6 +1865,8 @@ static void test_CreateFontFace(void)
IDWriteFont_Release
(
font
);
IDWriteFontFamily_Release
(
family
);
IDWriteFontCollection_Release
(
collection
);
ref
=
IDWriteFactory_Release
(
factory
);
ok
(
ref
==
0
,
"factory not released, %u.
\n
"
,
ref
);
/* IDWriteFactory::CreateFontFace() */
path
=
create_testfontfile
(
test_fontfile
);
...
...
@@ -1929,7 +1932,8 @@ todo_wine
}
IDWriteFontFile_Release
(
file
);
IDWriteFactory_Release
(
factory
);
ref
=
IDWriteFactory_Release
(
factory
);
ok
(
ref
==
0
,
"factory not released, %u.
\n
"
,
ref
);
DELETE_FONTFILE
(
path
);
}
...
...
@@ -4873,6 +4877,7 @@ static void test_IsMonospacedFont(void)
ULONG
ref
;
factory
=
create_factory
();
hr
=
IDWriteFactory_GetSystemFontCollection
(
factory
,
&
collection
,
FALSE
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
...
...
@@ -4920,7 +4925,8 @@ static void test_IsMonospacedFont(void)
else
skip
(
"Courier New font not found.
\n
"
);
ref
=
IDWriteFontCollection_Release
(
collection
);
IDWriteFontCollection_Release
(
collection
);
ref
=
IDWriteFactory_Release
(
factory
);
ok
(
ref
==
0
,
"factory not released, %u
\n
"
,
ref
);
}
...
...
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