v2: Remove unnecessary null pointer check CC: "10.0" <mesa-sta...@lists.freedesktop.org> --- src/gallium/drivers/r600/evergreen_compute.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c index f0f537c..caac599 100644 --- a/src/gallium/drivers/r600/evergreen_compute.c +++ b/src/gallium/drivers/r600/evergreen_compute.c @@ -238,6 +238,8 @@ void evergreen_delete_compute_state(struct pipe_context *ctx, void* state) if (!shader) return; + FREE(shader->kernels); + #ifdef HAVE_OPENCL if (shader->llvm_ctx){ LLVMContextDispose(shader->llvm_ctx); -- 1.8.3.2 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev