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
ba8caceb
Commit
ba8caceb
authored
Jan 01, 2014
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Free the correct pointer (Coverity).
parent
1e108423
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
graphicspath.c
dlls/gdiplus/graphicspath.c
+3
-3
No files found.
dlls/gdiplus/graphicspath.c
View file @
ba8caceb
...
...
@@ -868,7 +868,7 @@ static GpStatus format_string_callback(HDC dc,
for
(
i
=
index
;
i
<
length
;
++
i
)
{
GLYPHMETRICS
gm
;
TTPOLYGONHEADER
*
ph
=
NULL
;
TTPOLYGONHEADER
*
ph
=
NULL
,
*
origph
;
char
*
start
;
DWORD
len
,
ofs
=
0
;
len
=
GetGlyphOutlineW
(
dc
,
string
[
i
],
GGO_BEZIER
,
&
gm
,
0
,
NULL
,
&
identity
);
...
...
@@ -877,7 +877,7 @@ static GpStatus format_string_callback(HDC dc,
status
=
GenericError
;
break
;
}
ph
=
GdipAlloc
(
len
);
origph
=
ph
=
GdipAlloc
(
len
);
start
=
(
char
*
)
ph
;
if
(
!
ph
||
!
lengthen_path
(
path
,
len
/
sizeof
(
POINTFX
)))
{
...
...
@@ -931,7 +931,7 @@ static GpStatus format_string_callback(HDC dc,
x
+=
gm
.
gmCellIncX
*
args
->
scale
;
y
+=
gm
.
gmCellIncY
*
args
->
scale
;
GdipFree
(
ph
);
GdipFree
(
orig
ph
);
if
(
status
!=
Ok
)
break
;
}
...
...
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