Commit 55795588 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Free the program variants array in shader_spirv_destroy() (Valgrind).

parent 7e64eba5
......@@ -1019,6 +1019,7 @@ static void shader_spirv_destroy(struct wined3d_shader *shader)
shader_spirv_invalidate_contexts_graphics_program_variant(&device_vk->d, variant_vk);
VK_CALL(vkDestroyShaderModule(device_vk->vk_device, variant_vk->vk_module, NULL));
}
heap_free(program_vk->variants);
vkd3d_shader_free_scan_descriptor_info(&program_vk->descriptor_info);
shader->backend_data = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment