From: Emil Velikov Date: Wed, 29 Aug 2018 17:14:02 +0000 (+0100) Subject: vl/dri3: do full teardown on screen_destroy X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d081ad2aa25c5673ec1927fca81e6ac65de4b1b1;p=mesa.git 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 Cc: Christian König Signed-off-by: Emil Velikov Reviewed-by: Leo Liu --- diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri3.c b/src/gallium/auxiliary/vl/vl_winsys_dri3.c index 82b6445a767..d6a1ec0bfdd 100644 --- a/src/gallium/auxiliary/vl/vl_winsys_dri3.c +++ b/src/gallium/auxiliary/vl/vl_winsys_dri3.c @@ -726,7 +726,6 @@ vl_dri3_screen_destroy(struct vl_screen *vscreen) if (scrn->front_buffer) { dri3_free_front_buffer(scrn, scrn->front_buffer); scrn->front_buffer = NULL; - return; } for (i = 0; i < BACK_BUFFER_NUM; ++i) {