st/nine: Correctly release sw cursor image
authorAxel Davy <axel.davy@ens.fr>
Mon, 24 Oct 2016 19:50:26 +0000 (21:50 +0200)
committerAxel Davy <axel.davy@ens.fr>
Tue, 20 Dec 2016 22:44:21 +0000 (23:44 +0100)
cursor.image is used for software cursor
emulation. It wasn't released.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/device9.c

index a78d18e5267cd9dfc0d5e29518b2957395c139cd..62f2e8e52d4e52d9789d21e764b1887004e26d37 100644 (file)
@@ -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) {