summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-01-20 15:26:41 -0800
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-02-01 23:30:24 -0800
commit2b9ecaa6dd7d4282f1f8796d151bdda0390ab51f (patch)
treefccacb8baa01fb7608c0a20544ce6e8b8d467072 /src/gallium/drivers/r300
parent502ddfcd57ff7ed1f2dac9171f51c45893ea3d92 (diff)
r300: Fix missing free().
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r--src/gallium/drivers/r300/r300_screen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c
index 7bba567e83..04b5a7772b 100644
--- a/src/gallium/drivers/r300/r300_screen.c
+++ b/src/gallium/drivers/r300/r300_screen.c
@@ -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)