From 7279453da5c847d8f63f7e1f9e30ac2b03e6b3e9 Mon Sep 17 00:00:00 2001 From: Miklós Máté Date: Wed, 16 Dec 2015 00:05:34 +0100 Subject: mesa: Don't leak ATIfs instructions in DeleteFragmentShader Reviewed-by: Ian Romanick Cc: "11.0 11.1" --- src/mesa/main/atifragshader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa') diff --git a/src/mesa/main/atifragshader.c b/src/mesa/main/atifragshader.c index 935ba05b7cc..3ddc51d6069 100644 --- a/src/mesa/main/atifragshader.c +++ b/src/mesa/main/atifragshader.c @@ -293,7 +293,7 @@ _mesa_DeleteFragmentShaderATI(GLuint id) prog->RefCount--; if (prog->RefCount <= 0) { assert(prog != &DummyShader); - free(prog); + _mesa_delete_ati_fragment_shader(ctx, prog); } } } -- cgit v1.2.3