util/u_blitter: fix leak

(cherry picked from commit b51f6e7c23)
This commit is contained in:
Joakim Sindholt 2010-09-26 19:03:02 +02:00
parent 5c78e931c2
commit 9f221e738d

View file

@ -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]);