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
6033b3a7
Commit
6033b3a7
authored
Sep 06, 2019
by
Sven Baars
Committed by
Alexandre Julliard
Sep 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Fix a memory leak (Coverity).
Signed-off-by:
Sven Baars
<
sven.wine@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
332dc23f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
clipboard.c
dlls/winex11.drv/clipboard.c
+1
-2
No files found.
dlls/winex11.drv/clipboard.c
View file @
6033b3a7
...
...
@@ -1849,13 +1849,12 @@ static BOOL request_selection_contents( Display *display, BOOL changed )
last_size
!=
size
||
memcmp
(
last_data
,
data
,
size
));
if
(
!
changed
)
if
(
!
changed
||
!
OpenClipboard
(
clipboard_hwnd
)
)
{
HeapFree
(
GetProcessHeap
(),
0
,
data
);
return
FALSE
;
}
if
(
!
OpenClipboard
(
clipboard_hwnd
))
return
FALSE
;
TRACE
(
"selection changed, importing
\n
"
);
EmptyClipboard
();
is_clipboard_owner
=
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