From d081ad2aa25c5673ec1927fca81e6ac65de4b1b1 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Wed, 29 Aug 2018 18:14:02 +0100 Subject: vl/dri3: do full teardown on screen_destroy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/gallium/auxiliary') 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) { -- cgit v1.2.3