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
00e1e5dd
Commit
00e1e5dd
authored
Dec 24, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Dec 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Fix memory leak in GdipSetStringFormatMeasurableCharacterRanges.
parent
ffc4a49b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
stringformat.c
dlls/gdiplus/stringformat.c
+6
-2
No files found.
dlls/gdiplus/stringformat.c
View file @
00e1e5dd
...
...
@@ -252,15 +252,19 @@ GpStatus WINGDIPAPI GdipSetStringFormatLineAlign(GpStringFormat *format,
GpStatus
WINGDIPAPI
GdipSetStringFormatMeasurableCharacterRanges
(
GpStringFormat
*
format
,
INT
rangeCount
,
GDIPCONST
CharacterRange
*
ranges
)
{
CharacterRange
*
new_ranges
;
if
(
!
(
format
&&
ranges
))
return
InvalidParameter
;
TRACE
(
"%p, %d, %p
\n
"
,
format
,
rangeCount
,
ranges
);
format
->
character
_ranges
=
GdipAlloc
(
rangeCount
*
sizeof
(
CharacterRange
));
if
(
!
format
->
character
_ranges
)
new
_ranges
=
GdipAlloc
(
rangeCount
*
sizeof
(
CharacterRange
));
if
(
!
new
_ranges
)
return
OutOfMemory
;
GdipFree
(
format
->
character_ranges
);
format
->
character_ranges
=
new_ranges
;
memcpy
(
format
->
character_ranges
,
ranges
,
sizeof
(
CharacterRange
)
*
rangeCount
);
format
->
range_count
=
rangeCount
;
...
...
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