plug a memleak, destroy setup context
authorZack Rusin <zack@tungstengraphics.com>
Wed, 30 Apr 2008 18:05:49 +0000 (14:05 -0400)
committerZack Rusin <zack@tungstengraphics.com>
Wed, 30 Apr 2008 19:04:58 +0000 (15:04 -0400)
src/gallium/drivers/softpipe/sp_prim_setup.c

index feb35d492a346df7705c1790c04b1596fc404086..1cf9ffa632fae6a09fd09bdc00dd0660476d83b1 100644 (file)
@@ -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 );
 }