server: Fix leak of old clipboard data when replacing existing format.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9e087cde4b
commit
547d7eded3
|
@ -461,6 +461,7 @@ DECL_HANDLER(set_clipboard_data)
|
|||
}
|
||||
}
|
||||
|
||||
free( format->data );
|
||||
format->from = 0;
|
||||
format->seqno = clipboard->seqno++;
|
||||
format->size = get_req_data_size();
|
||||
|
|
Loading…
Reference in New Issue