forked from Mirrors/wine-wine
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>oldstable
parent
9e087cde4b
commit
547d7eded3
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue