radeon/llvm: reset temps_count on deallocation
authorMarek Olšák <marek.olsak@amd.com>
Tue, 26 May 2015 22:15:16 +0000 (00:15 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 29 May 2015 09:52:44 +0000 (11:52 +0200)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c

index 49836672dce84265289193c3b56be1cca9da169a..c8c980d9d329053d7e8ae8cb7b3ccf91d2357a1e 100644 (file)
@@ -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;