From 2359ebc976c0882092825c5ddac757dd138fe48c Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Thu, 1 Feb 2024 12:56:27 +0100 Subject: [PATCH] tests: Release the code blob in test_thread_id() (Valgrind). --- tests/hlsl_d3d12.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/hlsl_d3d12.c b/tests/hlsl_d3d12.c index 28007e3a..b2273ffb 100644 --- a/tests/hlsl_d3d12.c +++ b/tests/hlsl_d3d12.c @@ -525,6 +525,7 @@ static void test_thread_id(void) cs_code = compile_shader(cs_source, "cs_5_0"); context.pipeline_state = create_compute_pipeline_state(device, context.root_signature, shader_bytecode(ID3D10Blob_GetBufferPointer(cs_code), ID3D10Blob_GetBufferSize(cs_code))); + ID3D10Blob_Release(cs_code); ID3D12GraphicsCommandList_SetPipelineState(command_list, context.pipeline_state); ID3D12GraphicsCommandList_SetComputeRootSignature(command_list, context.root_signature);