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
bdfc8650
Commit
bdfc8650
authored
Apr 18, 2021
by
Sven Baars
Committed by
Alexandre Julliard
Apr 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Fix a leak on error path (Coverity).
Signed-off-by:
Sven Baars
<
sbaars@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9cd65680
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
path.c
dlls/gdi32/path.c
+5
-1
No files found.
dlls/gdi32/path.c
View file @
bdfc8650
...
...
@@ -1729,7 +1729,11 @@ static struct gdi_path *PATH_WidenPath(DC *dc)
pStrokes
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
pStrokes
));
else
pStrokes
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
pStrokes
,
numStrokes
*
sizeof
(
*
pStrokes
));
if
(
!
pStrokes
)
return
NULL
;
if
(
!
pStrokes
)
{
free_gdi_path
(
flat_path
);
return
NULL
;
}
pStrokes
[
numStrokes
-
1
]
=
alloc_gdi_path
(
0
);
/* fall through */
case
PT_LINETO
:
...
...
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