Nikolay Sivov : d3dcompiler: Always free messages string in D3DCompile2().
Module: wine Branch: master Commit: 929615fa13f7138b937602b68bbdda1f276a7d1d URL: https://gitlab.winehq.org/wine/wine/-/commit/929615fa13f7138b937602b68bbdda1... Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Tue Mar 21 19:45:06 2023 +0100 d3dcompiler: Always free messages string in D3DCompile2(). --- dlls/d3dcompiler_43/compiler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/d3dcompiler_43/compiler.c b/dlls/d3dcompiler_43/compiler.c index a3c7b22581f..3f302f23503 100644 --- a/dlls/d3dcompiler_43/compiler.c +++ b/dlls/d3dcompiler_43/compiler.c @@ -552,8 +552,8 @@ HRESULT WINAPI D3DCompile2(const void *data, SIZE_T data_size, const char *filen } memcpy(ID3D10Blob_GetBufferPointer(*messages_blob), messages, size); } - else - vkd3d_shader_free_messages(messages); + + vkd3d_shader_free_messages(messages); } if (!ret && shader_blob)
participants (1)
-
Alexandre Julliard