Re: [Mesa-dev] [PATCH] mesa: do not leak ctx->Shader.ReferencedProgram references

2018-05-24 Thread Timothy Arceri
Pushed. Thanks for the patch. On 25/05/18 03:56, Jose Dapena Paz wrote: When glUseProgram is used, references to the included shaders are added in ctx->Shader.ReferencedProgram. But those references are not decreased when the shader data is deallocated. Thus, those shaders are leaked. Explicite

[Mesa-dev] [PATCH] mesa: do not leak ctx->Shader.ReferencedProgram references

2018-05-24 Thread Jose Dapena Paz
When glUseProgram is used, references to the included shaders are added in ctx->Shader.ReferencedProgram. But those references are not decreased when the shader data is deallocated. Thus, those shaders are leaked. Explicitely remove the pending references to these shaders. Fixes: e6506b3cd23 ("me