summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/softpipe/sp_prim_setup.c
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2008-04-30 14:05:49 -0400
committerZack Rusin <zack@tungstengraphics.com>2008-04-30 15:04:58 -0400
commit653da2d0698d18a8d3dcad1b1590437dee7bb403 (patch)
treee1247a33355a5936f4c72ba9c2900118212b9798 /src/gallium/drivers/softpipe/sp_prim_setup.c
parent026e31a068981724fb0c98f6d1fc87d086fd2da6 (diff)
plug a memleak, destroy setup context
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_prim_setup.c')
-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 );
}