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
574cf27f
Commit
574cf27f
authored
Nov 03, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Nov 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Avoid memory leaks (coverity).
parent
22c254c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
clipboard.c
dlls/winex11.drv/clipboard.c
+5
-0
No files found.
dlls/winex11.drv/clipboard.c
View file @
574cf27f
...
...
@@ -1370,6 +1370,8 @@ static HANDLE X11DRV_CLIPBOARD_ImportXAPIXMAP(Display *display, Window w, Atom p
}
if
(
bits
.
free
)
bits
.
free
(
&
bits
);
}
HeapFree
(
GetProcessHeap
(),
0
,
lpdata
);
}
return
hClipData
;
...
...
@@ -1489,7 +1491,10 @@ static HANDLE X11DRV_CLIPBOARD_ImportClipboardData(Display *display, Window w, A
/* Turn on the DDESHARE flag to enable shared 32 bit memory */
hClipData
=
GlobalAlloc
(
GMEM_MOVEABLE
|
GMEM_DDESHARE
,
cbytes
);
if
(
hClipData
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
lpdata
);
return
NULL
;
}
if
((
lpClipData
=
GlobalLock
(
hClipData
)))
{
...
...
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