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
91128b90
Commit
91128b90
authored
Oct 09, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps.drv: Fix some memory leaks.
parent
057a7eba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
download.c
dlls/wineps.drv/download.c
+7
-5
No files found.
dlls/wineps.drv/download.c
View file @
91128b90
...
...
@@ -242,16 +242,18 @@ BOOL PSDRV_WriteSetDownloadFont(PSDRV_PDEVICE *physDev)
RECT
bbox
;
UINT
emsize
;
if
(
!
get_bbox
(
physDev
,
&
bbox
,
&
emsize
))
{
HeapFree
(
GetProcessHeap
(),
0
,
potm
);
return
FALSE
;
}
if
(
!
is_room_for_font
(
physDev
))
PSDRV_EmptyDownloadList
(
physDev
,
TRUE
);
pdl
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
pdl
));
pdl
->
ps_name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
ps_name
)
+
1
);
strcpy
(
pdl
->
ps_name
,
ps_name
);
pdl
->
next
=
NULL
;
if
(
!
get_bbox
(
physDev
,
&
bbox
,
&
emsize
))
return
FALSE
;
if
(
!
is_room_for_font
(
physDev
))
PSDRV_EmptyDownloadList
(
physDev
,
TRUE
);
if
(
physDev
->
pi
->
ppd
->
TTRasterizer
==
RO_Type42
)
{
pdl
->
typeinfo
.
Type42
=
T42_download_header
(
physDev
,
ps_name
,
&
bbox
,
emsize
);
pdl
->
type
=
Type42
;
...
...
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