summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2008-04-30 14:05:49 -0400
committerZack Rusin <[email protected]>2008-04-30 15:04:58 -0400
commit653da2d0698d18a8d3dcad1b1590437dee7bb403 (patch)
treee1247a33355a5936f4c72ba9c2900118212b9798 /src
parent026e31a068981724fb0c98f6d1fc87d086fd2da6 (diff)
plug a memleak, destroy setup context
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/softpipe/sp_prim_setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_prim_setup.c b/src/gallium/drivers/softpipe/sp_prim_setup.c
index feb35d492a3..1cf9ffa632f 100644
--- a/src/gallium/drivers/softpipe/sp_prim_setup.c
+++ b/src/gallium/drivers/softpipe/sp_prim_setup.c
@@ -150,6 +150,8 @@ static void reset_stipple_counter( struct draw_stage *stage )
static void render_destroy( struct draw_stage *stage )
{
+ struct setup_stage *ssetup = setup_stage(stage);
+ setup_destroy_context(ssetup->setup);
FREE( stage );
}