From: Miklós Máté Date: Tue, 15 Dec 2015 23:05:34 +0000 (+0100) Subject: mesa: Don't leak ATIfs instructions in DeleteFragmentShader X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7279453da5c847d8f63f7e1f9e30ac2b03e6b3e9;p=mesa.git mesa: Don't leak ATIfs instructions in DeleteFragmentShader Reviewed-by: Ian Romanick Cc: "11.0 11.1" --- 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); } } }