util/u_blitter: fix leak
authorJoakim Sindholt <opensource@zhasha.com>
Sun, 26 Sep 2010 17:03:02 +0000 (19:03 +0200)
committerJoakim Sindholt <opensource@zhasha.com>
Sun, 26 Sep 2010 17:03:02 +0000 (19:03 +0200)
src/gallium/auxiliary/util/u_blitter.c

index c160716e6a76f36b37dd7d974acc6347450c17a7..a163f93cb826fec91a99f1eb43c7a7c9756e33d6 100644 (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]);