From c3e5140142c65edc7004a3e8c0d4a852dfb8e60e Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Mon, 24 Oct 2016 21:50:26 +0200 Subject: [PATCH] st/nine: Correctly release sw cursor image cursor.image is used for software cursor emulation. It wasn't released. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index a78d18e5267..62f2e8e52d4 100644 --- a/src/gallium/state_trackers/nine/device9.c +++ b/src/gallium/state_trackers/nine/device9.c @@ -511,6 +511,7 @@ NineDevice9_dtor( struct NineDevice9 *This ) FREE(This->state.vs_const_b); FREE(This->state.vs_const_f_swvp); + pipe_resource_reference(&This->cursor.image, NULL); FREE(This->cursor.hw_upload_temp); if (This->swapchains) { -- 2.11.0