From: Marek Olšák Date: Tue, 26 May 2015 22:15:16 +0000 (+0200) Subject: radeon/llvm: reset temps_count on deallocation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7116250b7a3aa8863f11d18032a3fbd24e2eee73;p=mesa.git radeon/llvm: reset temps_count on deallocation Reviewed-by: Michel Dänzer --- diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c index 49836672dce..c8c980d9d32 100644 --- a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c +++ b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c @@ -1631,6 +1631,7 @@ void radeon_llvm_dispose(struct radeon_llvm_context * ctx) ctx->arrays = NULL; FREE(ctx->temps); ctx->temps = NULL; + ctx->temps_count = 0; FREE(ctx->loop); ctx->loop = NULL; ctx->loop_depth_max = 0;