winex11.drv: Fix a memory leak (Coverity).
Signed-off-by: Sven Baars <sven.wine@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
332dc23f36
commit
6033b3a7fb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue