From: Michel Dänzer Date: Wed, 15 Aug 2012 16:22:46 +0000 (+0200) Subject: radeonsi: Fix LLVM context leak. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b64fa2ff18ecf5b991f3f5e11daf1e3d8314664;p=mesa.git radeonsi: Fix LLVM context leak. Signed-off-by: Michel Dänzer Reviewed-by: Alex Deucher --- diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c index 4f762245b2b..0f2aaef8175 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_shader.c +++ b/src/gallium/drivers/radeonsi/radeonsi_shader.c @@ -681,6 +681,7 @@ int si_pipe_shader_create( shader->num_vgprs = util_le32_to_cpu(*(uint32_t*)(inst_bytes + 4)); shader->spi_ps_input_ena = util_le32_to_cpu(*(uint32_t*)(inst_bytes + 8)); + radeon_llvm_dispose(&si_shader_ctx.radeon_bld); tgsi_parse_free(&si_shader_ctx.parse); /* copy new shader */