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
32d0ef39
Commit
32d0ef39
authored
Dec 15, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Fix missing unlock & free on an error path (Smatch).
parent
888d1a23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
xrender.c
dlls/winex11.drv/xrender.c
+5
-3
No files found.
dlls/winex11.drv/xrender.c
View file @
32d0ef39
...
...
@@ -2030,17 +2030,19 @@ BOOL CDECL X11DRV_AlphaBlend(X11DRV_PDEVICE *devDst, INT xDst, INT yDst, INT wid
dst_pict
=
get_xrender_picture
(
devDst
);
wine_tsx11_lock
();
image
=
XCreateImage
(
gdi_display
,
visual
,
32
,
ZPixmap
,
0
,
(
char
*
)
data
,
widthSrc
,
heightSrc
,
32
,
widthSrc
*
4
);
src_format
=
get_xrender_format
(
WXR_FORMAT_A8R8G8B8
);
TRACE
(
"src_format %p
\n
"
,
src_format
);
if
(
!
src_format
)
{
WARN
(
"Unable to find a picture format supporting alpha, make sure X is running at 24-bit
\n
"
);
wine_tsx11_unlock
();
HeapFree
(
GetProcessHeap
(),
0
,
data
);
return
FALSE
;
}
image
=
XCreateImage
(
gdi_display
,
visual
,
32
,
ZPixmap
,
0
,
(
char
*
)
data
,
widthSrc
,
heightSrc
,
32
,
widthSrc
*
4
);
TRACE
(
"src_drawable = %08lx
\n
"
,
devSrc
->
drawable
);
xpm
=
XCreatePixmap
(
gdi_display
,
root_window
,
...
...
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