From: Zack Rusin Date: Wed, 30 Apr 2008 18:05:49 +0000 (-0400) Subject: plug a memleak, destroy setup context X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=653da2d0698d18a8d3dcad1b1590437dee7bb403;p=mesa.git plug a memleak, destroy setup context --- 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 ); }