d3dcompiler: Always free messages string in D3DCompile2().

This commit is contained in:
Nikolay Sivov 2023-03-21 19:45:06 +01:00 committed by Alexandre Julliard
parent 5231c8c8bb
commit 929615fa13

View file

@ -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)