gallium: fix mem leak (fee pstipple stage)
authorBrian <brian.paul@tungstengraphics.com>
Sat, 22 Mar 2008 15:12:27 +0000 (09:12 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Sat, 22 Mar 2008 15:12:27 +0000 (09:12 -0600)
src/gallium/auxiliary/draw/draw_context.c

index 4cca965ac1059c9cbba607692813941e96903b43..41da93cdf836122ef462801de54a6d2e29f07452 100644 (file)
@@ -113,6 +113,8 @@ void draw_destroy( struct draw_context *draw )
       draw->pipeline.aaline->destroy( draw->pipeline.aaline );
    if (draw->pipeline.aapoint)
       draw->pipeline.aapoint->destroy( draw->pipeline.aapoint );
+   if (draw->pipeline.pstipple)
+      draw->pipeline.pstipple->destroy( draw->pipeline.pstipple );
    if (draw->pipeline.rasterize)
       draw->pipeline.rasterize->destroy( draw->pipeline.rasterize );
    tgsi_exec_machine_free_data(&draw->machine);