Mesa (7.9): util/u_blitter: fix leak

Joakim Sindholt jsindholt at kemper.freedesktop.org
Sun Sep 26 17:54:04 UTC 2010


Module: Mesa
Branch: 7.9
Commit: 9f221e738d09752f0b5ce1716350af18ee4e6e4d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f221e738d09752f0b5ce1716350af18ee4e6e4d

Author: Joakim Sindholt <opensource at zhasha.com>
Date:   Sun Sep 26 19:03:02 2010 +0200

util/u_blitter: fix leak
(cherry picked from commit b51f6e7c2350f637337fc3935436e2f99f669dfd)

---

 src/gallium/auxiliary/util/u_blitter.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
index f93ef26..7a16187 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]);
 




More information about the mesa-commit mailing list