Sebastian Lackner : server: Fix leak of old clipboard data when replacing existing format.
Alexandre Julliard
julliard at winehq.org
Tue Sep 27 11:08:52 CDT 2016
Module: wine
Branch: master
Commit: 547d7eded393fb83f0d8eb08a9129ea23ecde5ba
URL: http://source.winehq.org/git/wine.git/?a=commit;h=547d7eded393fb83f0d8eb08a9129ea23ecde5ba
Author: Sebastian Lackner <sebastian at fds-team.de>
Date: Tue Sep 27 17:05:05 2016 +0200
server: Fix leak of old clipboard data when replacing existing format.
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
server/clipboard.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/server/clipboard.c b/server/clipboard.c
index aa23b5f..d8b5f96 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();
More information about the wine-cvs
mailing list