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
e0f5dddd
Commit
e0f5dddd
authored
Feb 21, 2011
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Do not leak the hfont list (Valgrind).
parent
20bdd203
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
freetype.c
dlls/gdi32/freetype.c
+8
-8
No files found.
dlls/gdi32/freetype.c
View file @
e0f5dddd
...
...
@@ -3086,20 +3086,20 @@ static void free_font(GdiFont *font)
LIST_FOR_EACH_SAFE
(
cursor
,
cursor2
,
&
font
->
child_fonts
)
{
CHILD_FONT
*
child
=
LIST_ENTRY
(
cursor
,
CHILD_FONT
,
entry
);
struct
list
*
first_hfont
;
HFONTLIST
*
hfontlist
;
list_remove
(
cursor
);
if
(
child
->
font
)
{
first_hfont
=
list_head
(
&
child
->
font
->
hfontlist
);
hfontlist
=
LIST_ENTRY
(
first_hfont
,
HFONTLIST
,
entry
);
DeleteObject
(
hfontlist
->
hfont
);
HeapFree
(
GetProcessHeap
(),
0
,
hfontlist
);
free_font
(
child
->
font
);
}
HeapFree
(
GetProcessHeap
(),
0
,
child
);
}
LIST_FOR_EACH_SAFE
(
cursor
,
cursor2
,
&
font
->
hfontlist
)
{
HFONTLIST
*
hfontlist
=
LIST_ENTRY
(
cursor
,
HFONTLIST
,
entry
);
DeleteObject
(
hfontlist
->
hfont
);
list_remove
(
&
hfontlist
->
entry
);
HeapFree
(
GetProcessHeap
(),
0
,
hfontlist
);
}
if
(
font
->
ft_face
)
pFT_Done_Face
(
font
->
ft_face
);
if
(
font
->
mapping
)
unmap_font_file
(
font
->
mapping
);
HeapFree
(
GetProcessHeap
(),
0
,
font
->
kern_pairs
);
...
...
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