Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ac14a2ee
Commit
ac14a2ee
authored
Oct 21, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Properly free "visinfo" in get_formats() (Valgrind).
parent
fa548414
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
opengl.c
dlls/winex11.drv/opengl.c
+5
-2
No files found.
dlls/winex11.drv/opengl.c
View file @
ac14a2ee
...
...
@@ -906,7 +906,10 @@ static WineGLPixelFormat *get_formats(Display *display, int *size_ret, int *onsc
* with a depth of 32 in addition to the default 24 bit. In order to prevent BadMatch errors we only
* list formats with the same depth. */
if
(
visinfo
->
depth
!=
screen_depth
)
{
XFree
(
visinfo
);
continue
;
}
TRACE
(
"Found onscreen format FBCONFIG_ID 0x%x corresponding to iPixelFormat %d at GLX index %d
\n
"
,
fmt_id
,
size
+
1
,
i
);
list
[
size
].
iPixelFormat
=
size
+
1
;
/* The index starts at 1 */
...
...
@@ -931,8 +934,6 @@ static WineGLPixelFormat *get_formats(Display *display, int *size_ret, int *onsc
size
++
;
onscreen_size
++
;
}
XFree
(
visinfo
);
}
else
if
(
run
&&
!
visinfo
)
{
TRACE
(
"Found offscreen format FBCONFIG_ID 0x%x corresponding to iPixelFormat %d at GLX index %d
\n
"
,
fmt_id
,
size
+
1
,
i
);
list
[
size
].
iPixelFormat
=
size
+
1
;
/* The index starts at 1 */
...
...
@@ -943,6 +944,8 @@ static WineGLPixelFormat *get_formats(Display *display, int *size_ret, int *onsc
list
[
size
].
dwFlags
=
0
;
size
++
;
}
if
(
visinfo
)
XFree
(
visinfo
);
}
}
...
...
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