From 589457d97fa8e95f227e7179e9c89a01dff495a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tapani=20P=C3=A4lli?= Date: Wed, 20 Sep 2017 09:29:16 +0300 Subject: [PATCH] mesa: free current ComputeProgram state in _mesa_free_context_data MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This is already done for other programs stages, fixes a leak when using compute programs. Signed-off-by: Tapani Pälli Cc: mesa-stable@lists.freedesktop.org Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102844 Reviewed-by: Timothy Arceri Reviewed-by: Samuel Pitoiset --- src/mesa/main/context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index dad3ab39f84..55a65ac2abe 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1329,6 +1329,8 @@ _mesa_free_context_data( struct gl_context *ctx ) _mesa_reference_program(ctx, &ctx->FragmentProgram._Current, NULL); _mesa_reference_program(ctx, &ctx->FragmentProgram._TexEnvProgram, NULL); + _mesa_reference_program(ctx, &ctx->ComputeProgram._Current, NULL); + _mesa_reference_vao(ctx, &ctx->Array.VAO, NULL); _mesa_reference_vao(ctx, &ctx->Array.DefaultVAO, NULL); -- 2.30.2