Henri Verbeet : wined3d: Free the program variants array in shader_spirv_destroy() (Valgrind).
Module: wine Branch: master Commit: 55795588f45be11c296214cfb1e60b3fb51e81bd URL: https://source.winehq.org/git/wine.git/?a=commit;h=55795588f45be11c296214cfb... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Apr 29 19:06:03 2021 +0200 wined3d: Free the program variants array in shader_spirv_destroy() (Valgrind). Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/wined3d/shader_spirv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/wined3d/shader_spirv.c b/dlls/wined3d/shader_spirv.c index eb2647db12d..7617ee9d6ef 100644 --- a/dlls/wined3d/shader_spirv.c +++ b/dlls/wined3d/shader_spirv.c @@ -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;
participants (1)
-
Alexandre Julliard