egl/wayland: Destroy the pending buffer callback with the egl surface
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Mon, 21 Jan 2013 15:36:52 +0000 (17:36 +0200)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Tue, 22 Jan 2013 18:11:23 +0000 (19:11 +0100)
commit81d40e66ad1c0c53c1de2f183a4987a3159c7c55
tree60bb670e7c858f0bce9e51a44c2a3e794baf15d9
parentcd0e19a749951c0d7e88e3cce5cf71de54681d11
egl/wayland: Destroy the pending buffer callback with the egl surface

Otherwise, we crash when the callback is executed, since the dri2_surf
pointer may point to invalid data.

Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_wayland.c