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 935ba05b7cc2b70782e676975df7b34be089ff5a..3ddc51d6069f923c410fc230dad823089136ce42 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);
         }
       }
    }