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 a78d18e..62f2e8e 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) {