Commit 547d7ede authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

server: Fix leak of old clipboard data when replacing existing format.

parent 9e087cde
...@@ -461,6 +461,7 @@ DECL_HANDLER(set_clipboard_data) ...@@ -461,6 +461,7 @@ DECL_HANDLER(set_clipboard_data)
} }
} }
free( format->data );
format->from = 0; format->from = 0;
format->seqno = clipboard->seqno++; format->seqno = clipboard->seqno++;
format->size = get_req_data_size(); format->size = get_req_data_size();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment