vl/dri3: do full teardown on screen_destroy
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 29 Aug 2018 17:14:02 +0000 (18:14 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 3 Oct 2018 12:38:05 +0000 (13:38 +0100)
commitd081ad2aa25c5673ec1927fca81e6ac65de4b1b1
tree81454a367bce395190cb025f7c61a10d62e594ee
parent1301674c393671b407eab30aa66bdea6977b1ac8
vl/dri3: do full teardown on screen_destroy

Earlier commit added support for 'front_buffers', erroneously adding a
return in vl_dri3_screen_destroy. Effectively leaking a lot of state.

Fixes: 8d7ac0a4e4d ("vl/dri3: implement DRI3 BufferFromPixmap")
Cc: Leo Liu <leo.liu@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
src/gallium/auxiliary/vl/vl_winsys_dri3.c