diff options
author | Aaron Watry <[email protected]> | 2014-03-04 17:12:19 -0600 |
---|---|---|
committer | Aaron Watry <[email protected]> | 2014-03-06 11:38:26 -0600 |
commit | fb781526787463cb4a1c596b6f8ed867d24b87a2 (patch) | |
tree | dc551526f864581cfe24360936a14d62911145ec | |
parent | 1d8e3067fd9ce72b3711fc208409ac4a7cff4e53 (diff) |
gallium/util: Fix memory leak
Fix a leaked vertex shader in u_blitter.c
Signed-off-by: Aaron Watry <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
CC: "10.1" <[email protected]>
-rw-r--r-- | src/gallium/auxiliary/util/u_blitter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index 95e7fb6313a..66b511eb536 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -364,6 +364,8 @@ void util_blitter_destroy(struct blitter_context *blitter) pipe->delete_vs_state(pipe, ctx->vs); if (ctx->vs_pos_only) pipe->delete_vs_state(pipe, ctx->vs_pos_only); + if (ctx->vs_layered) + pipe->delete_vs_state(pipe, ctx->vs_layered); pipe->delete_vertex_elements_state(pipe, ctx->velem_state); for (i = 0; i < 4; i++) { if (ctx->velem_state_readbuf[i]) { |