r300: Fix missing free().
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Tue, 20 Jan 2009 23:26:41 +0000 (15:26 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 2 Feb 2009 07:30:24 +0000 (23:30 -0800)
src/gallium/drivers/r300/r300_screen.c

index 7bba567e83eff8c4e76f695094d8d63f9ae43995..04b5a7772b5a80fa3c9fd0967a08d9395a43062c 100644 (file)
@@ -135,7 +135,10 @@ static void r300_surface_unmap(struct pipe_screen* screen,
 }
 
 static void r300_destroy_screen(struct pipe_screen* pscreen) {
-    FREE(pscreen);
+    struct r300_screen* r300screen = r300_screen(pscreen);
+
+    FREE(r300screen->caps);
+    FREE(r300screen);
 }
 
 struct pipe_screen* r300_create_screen(struct pipe_winsys* winsys, uint32_t pci_id)