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:
Sebastian Lackner 2016-09-27 17:05:05 +02:00 committed by Alexandre Julliard
parent 9e087cde4b
commit 547d7eded3
1 changed files with 1 additions and 0 deletions

View File

@ -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();