gallium/util: Fix memory leak
Fix a leaked vertex shader in u_blitter.c Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> CC: "10.1" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
1d8e3067fd
commit
fb78152678
|
@ -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]) {
|
||||
|
|
Loading…
Reference in New Issue