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
438d115e
Commit
438d115e
authored
Oct 13, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Correct reference count behavior for font face interface.
parent
c503af85
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
font.c
dlls/dwrite/font.c
+1
-2
font.c
dlls/dwrite/tests/font.c
+3
-3
No files found.
dlls/dwrite/font.c
View file @
438d115e
...
...
@@ -352,6 +352,7 @@ static ULONG WINAPI dwritefont_Release(IDWriteFont *iface)
if
(
!
ref
)
{
if
(
This
->
face
)
IDWriteFontFace_Release
(
This
->
face
);
IDWriteFontFamily_Release
(
This
->
family
);
heap_free
(
This
);
}
...
...
@@ -442,8 +443,6 @@ static HRESULT WINAPI dwritefont_CreateFontFace(IDWriteFont *iface, IDWriteFontF
{
HRESULT
hr
=
create_fontface
(
&
This
->
face
);
if
(
FAILED
(
hr
))
return
hr
;
*
face
=
This
->
face
;
return
hr
;
}
*
face
=
This
->
face
;
...
...
dlls/dwrite/tests/font.c
View file @
438d115e
...
...
@@ -433,17 +433,17 @@ if (0) /* crashes on native */
hr
=
IDWriteFont_CreateFontFace
(
font
,
&
fontface
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
EXPECT_REF
(
font
,
1
);
EXPECT_REF
(
fontface
,
1
);
EXPECT_REF
(
fontface
,
2
);
hr
=
IDWriteFont_CreateFontFace
(
font
,
&
fontface2
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
fontface
==
fontface2
,
"got %p, was %p
\n
"
,
fontface2
,
fontface
);
EXPECT_REF
(
fontface
,
2
);
EXPECT_REF
(
fontface
,
3
);
EXPECT_REF
(
font
,
1
);
IDWriteFontFace_AddRef
(
fontface
);
EXPECT_REF
(
font
,
1
);
EXPECT_REF
(
fontface
,
3
);
EXPECT_REF
(
fontface
,
4
);
IDWriteFontFace_Release
(
fontface
);
IDWriteFontFace_Release
(
fontface
);
...
...
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