vl/dri3: Destroy Present event context when destroying drawable v2
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 28 Jul 2016 08:52:11 +0000 (17:52 +0900)
committerMichel Dänzer <michel@daenzer.net>
Thu, 4 Aug 2016 06:45:43 +0000 (15:45 +0900)
commit67c5e843b9ae2c72bcf5c84f8744c1bd23fc262a
treec6d7df3cfd965e103811e9af9df14fd208fa8d67
parent5d191bafa26d2a88aa108823a2f3b9a321294fdc
vl/dri3: Destroy Present event context when destroying drawable v2

Without this, the X server may accumulate stale Present event contexts
if a client performs several video decoding sessions using the same
window.

v2: Based on Chris Wilson's review:
* Use xcb_discard_reply() instead of free(xcb_request_check())

Reviewed-and-Tested-by: Leo Liu <leo.liu@amd.com>
src/gallium/auxiliary/vl/vl_winsys_dri3.c