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
42f791cc
Commit
42f791cc
authored
Oct 30, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Oct 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Avoid memory leaks (coverity).
parent
4ee73e69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
download.c
dlls/wineps.drv/download.c
+4
-3
ps.c
dlls/wineps.drv/ps.c
+1
-0
No files found.
dlls/wineps.drv/download.c
View file @
42f791cc
...
...
@@ -313,9 +313,10 @@ BOOL PSDRV_WriteSetDownloadFont(PHYSDEV dev)
UINT
emsize
;
if
(
!
get_bbox
(
dev
->
hdc
,
&
bbox
,
&
emsize
))
{
HeapFree
(
GetProcessHeap
(),
0
,
potm
);
return
FALSE
;
}
HeapFree
(
GetProcessHeap
(),
0
,
ps_name
);
HeapFree
(
GetProcessHeap
(),
0
,
potm
);
return
FALSE
;
}
if
(
!
is_room_for_font
(
physDev
))
PSDRV_EmptyDownloadList
(
dev
,
TRUE
);
...
...
dlls/wineps.drv/ps.c
View file @
42f791cc
...
...
@@ -385,6 +385,7 @@ INT PSDRV_WriteHeader( PHYSDEV dev, LPCWSTR title )
strlen
(
escaped_title
)
+
30
);
if
(
!
buf
)
{
WARN
(
"HeapAlloc failed
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
escaped_title
);
return
0
;
}
...
...
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