vkd3d-dxbc: Free the blob if parsing it failed.

This commit is contained in:
Henri Verbeet 2024-04-03 17:59:30 +02:00 committed by Alexandre Julliard
parent 8f529cd0ae
commit 806afd7b50
Notes: Alexandre Julliard 2024-04-04 22:42:25 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/755

View File

@ -610,7 +610,10 @@ int main(int argc, char **argv)
fputs(messages, stderr);
vkd3d_shader_free_messages(messages);
if (ret < 0)
{
vkd3d_shader_free_shader_code(&dxbc);
goto done;
}
if (options.list || options.list_data)
dump_dxbc(&dxbc, &dxbc_desc, &options);