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
6c0cd69f
Commit
6c0cd69f
authored
Sep 19, 2005
by
Uwe Bonnes
Committed by
Alexandre Julliard
Sep 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't free a modified pointer.
parent
c292f486
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
xrender.c
dlls/x11drv/xrender.c
+3
-3
No files found.
dlls/x11drv/xrender.c
View file @
6c0cd69f
...
@@ -425,7 +425,7 @@ static int AllocEntry(void)
...
@@ -425,7 +425,7 @@ static int AllocEntry(void)
static
BOOL
get_gasp_flags
(
X11DRV_PDEVICE
*
physDev
,
WORD
*
flags
)
static
BOOL
get_gasp_flags
(
X11DRV_PDEVICE
*
physDev
,
WORD
*
flags
)
{
{
DWORD
size
;
DWORD
size
;
WORD
*
gasp
;
WORD
*
gasp
,
*
buffer
;
WORD
num_recs
;
WORD
num_recs
;
DWORD
ppem
;
DWORD
ppem
;
TEXTMETRICW
tm
;
TEXTMETRICW
tm
;
...
@@ -436,7 +436,7 @@ static BOOL get_gasp_flags(X11DRV_PDEVICE *physDev, WORD *flags)
...
@@ -436,7 +436,7 @@ static BOOL get_gasp_flags(X11DRV_PDEVICE *physDev, WORD *flags)
if
(
size
==
GDI_ERROR
)
if
(
size
==
GDI_ERROR
)
return
FALSE
;
return
FALSE
;
gasp
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
gasp
=
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
GetFontData
(
physDev
->
hdc
,
MS_GASP_TAG
,
0
,
gasp
,
size
);
GetFontData
(
physDev
->
hdc
,
MS_GASP_TAG
,
0
,
gasp
,
size
);
GetTextMetricsW
(
physDev
->
hdc
,
&
tm
);
GetTextMetricsW
(
physDev
->
hdc
,
&
tm
);
...
@@ -454,7 +454,7 @@ static BOOL get_gasp_flags(X11DRV_PDEVICE *physDev, WORD *flags)
...
@@ -454,7 +454,7 @@ static BOOL get_gasp_flags(X11DRV_PDEVICE *physDev, WORD *flags)
}
}
TRACE
(
"got flags %04x for ppem %ld
\n
"
,
*
flags
,
ppem
);
TRACE
(
"got flags %04x for ppem %ld
\n
"
,
*
flags
,
ppem
);
HeapFree
(
GetProcessHeap
(),
0
,
gasp
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
return
TRUE
;
return
TRUE
;
}
}
...
...
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