u_blitter: fix a memory leak
authorMarek Olšák <maraeo@gmail.com>
Thu, 19 Aug 2010 21:32:04 +0000 (23:32 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 19 Aug 2010 21:32:04 +0000 (23:32 +0200)
src/gallium/auxiliary/util/u_blitter.c

index b5b86b7214258788a066d1b2ac295c630e8a181b..49ee7bb31df7c3400eed0c1a10096c3b69a1b90a 100644 (file)
@@ -254,6 +254,7 @@ void util_blitter_destroy(struct blitter_context *blitter)
                                           ctx->dsa_write_depth_keep_stencil);
    pipe->delete_depth_stencil_alpha_state(pipe, ctx->dsa_write_depth_stencil);
    pipe->delete_depth_stencil_alpha_state(pipe, ctx->dsa_keep_depth_write_stencil);
+   pipe->delete_depth_stencil_alpha_state(pipe, ctx->dsa_flush_depth_stencil);
 
    pipe->delete_rasterizer_state(pipe, ctx->rs_state);
    pipe->delete_vs_state(pipe, ctx->vs_col);