r600g: Destroy the winsys in r600_destroy_screen().
authorTilman Sauerbeck <tilman@code-monkey.de>
Sun, 31 Oct 2010 14:51:55 +0000 (15:51 +0100)
committerTilman Sauerbeck <tilman@code-monkey.de>
Tue, 2 Nov 2010 20:52:39 +0000 (21:52 +0100)
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
src/gallium/drivers/r600/r600_pipe.c

index 952c7f6b87f4d58f32304141f7f62b71e3efc4ef..55370f06fd82382cd4fad5ca766fe72ea3737eed 100644 (file)
@@ -431,6 +431,9 @@ static void r600_destroy_screen(struct pipe_screen* pscreen)
 
        if (rscreen == NULL)
                return;
+
+       radeon_decref(rscreen->radeon);
+
        FREE(rscreen);
 }