[Mesa-stable] [Mesa-dev] [PATCH] gallium/util: Fix memory leak

Marek Olšák maraeo at gmail.com
Wed Mar 5 14:01:05 PST 2014


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Wed, Mar 5, 2014 at 12:20 AM, Aaron Watry <awatry at gmail.com> wrote:
> Fix a leaked vertex shader in u_blitter.c
>
> Signed-off-by: Aaron Watry <awatry at gmail.com>
>
> CC: "10.1" <mesa-stable at lists.freedesktop.org>
> ---
>  src/gallium/auxiliary/util/u_blitter.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
> index 95e7fb6..66b511e 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]) {
> --
> 1.8.3.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-stable mailing list