From: Joakim Sindholt Date: Sun, 26 Sep 2010 17:03:02 +0000 (+0200) Subject: util/u_blitter: fix leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b51f6e7c2350f637337fc3935436e2f99f669dfd;p=mesa.git util/u_blitter: fix leak --- diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index c160716e6a7..a163f93cb82 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -268,7 +268,7 @@ void util_blitter_destroy(struct blitter_context *blitter) pipe->delete_fs_state(pipe, ctx->fs_texfetch_depth[i]); } - for (i = 0; i <= PIPE_MAX_COLOR_BUFS && ctx->fs_col[i]; i++) + for (i = 0; i <= PIPE_MAX_COLOR_BUFS; i++) if (ctx->fs_col[i]) pipe->delete_fs_state(pipe, ctx->fs_col[i]);