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
0652bbc3
Commit
0652bbc3
authored
Dec 06, 2011
by
Pierre Schweitzer
Committed by
Alexandre Julliard
Dec 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps.drv: Fix memory leak.
parent
1ac70967
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
download.c
dlls/wineps.drv/download.c
+6
-3
No files found.
dlls/wineps.drv/download.c
View file @
0652bbc3
...
...
@@ -258,15 +258,18 @@ BOOL PSDRV_WriteSetDownloadFont(PHYSDEV dev)
assert
(
physDev
->
font
.
fontloc
==
Download
);
if
(
!
GetObjectW
(
GetCurrentObject
(
dev
->
hdc
,
OBJ_FONT
),
sizeof
(
lf
),
&
lf
))
return
FALSE
;
potm
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
if
(
!
potm
)
return
FALSE
;
GetOutlineTextMetricsA
(
dev
->
hdc
,
len
,
potm
);
get_download_name
(
dev
,
potm
,
&
ps_name
);
physDev
->
font
.
fontinfo
.
Download
=
is_font_downloaded
(
physDev
,
ps_name
);
if
(
!
GetObjectW
(
GetCurrentObject
(
dev
->
hdc
,
OBJ_FONT
),
sizeof
(
lf
),
&
lf
))
return
FALSE
;
ppem
=
calc_ppem_for_height
(
dev
->
hdc
,
lf
.
lfHeight
);
/* Retrieve the world -> device transform */
...
...
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