hw/xwin: In SelectionNotify, delete the property containing returned data after we have retrieved it

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
Jon TURNEY 2013-09-24 12:23:42 +01:00
parent ff018d88b9
commit c5ad92077e

View File

@ -568,13 +568,13 @@ winClipboardFlushXEvents(HWND hwnd,
winDebug("SelectionNotify - returned data %d left %d\n",
xtpText.nitems, ulReturnBytesLeft);
/* Request the selection data */
/* Retrieve the selection data and delete the property */
iReturn = XGetWindowProperty(pDisplay,
iWindow,
atomLocalProperty,
0,
ulReturnBytesLeft,
False,
True,
AnyPropertyType,
&xtpText.encoding,
&xtpText.format,