Skip to content
Snippets Groups Projects
Commit 8b8128b0 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard
Browse files

libs/vkd3d: Fix memory leak in d3d12_pipeline_state_init_compute_uav_counters().

parent 277cdd4e
No related branches found
No related tags found
No related merge requests found
......@@ -1321,7 +1321,10 @@ static HRESULT d3d12_pipeline_state_init_compute_uav_counters(struct d3d12_pipel
if (!(binding_desc = vkd3d_calloc(uav_counter_count, sizeof(*binding_desc))))
return E_OUTOFMEMORY;
if (!(state->uav_counters = vkd3d_calloc(uav_counter_count, sizeof(*state->uav_counters))))
{
vkd3d_free(binding_desc);
return E_OUTOFMEMORY;
}
state->uav_counter_mask = shader_info->uav_counter_mask;
memset(&context, 0, sizeof(context));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment