diff --git a/server/clipboard.c b/server/clipboard.c index aa23b5f50b6..d8b5f96a350 100644 --- a/server/clipboard.c +++ b/server/clipboard.c @@ -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();