mesa: Don't leak ATIfs instructions in DeleteFragmentShader
authorMiklós Máté <mtmkls@gmail.com>
Tue, 15 Dec 2015 23:05:34 +0000 (00:05 +0100)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 17 Dec 2015 20:09:58 +0000 (12:09 -0800)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
src/mesa/main/atifragshader.c

index 935ba05..3ddc51d 100644 (file)
@@ -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);
         }
       }
    }