mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-dxbc: Free the blob if parsing it failed.
This commit is contained in:
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
@ -610,7 +610,10 @@ int main(int argc, char **argv)
|
|||||||
fputs(messages, stderr);
|
fputs(messages, stderr);
|
||||||
vkd3d_shader_free_messages(messages);
|
vkd3d_shader_free_messages(messages);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
{
|
||||||
|
vkd3d_shader_free_shader_code(&dxbc);
|
||||||
goto done;
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
if (options.list || options.list_data)
|
if (options.list || options.list_data)
|
||||||
dump_dxbc(&dxbc, &dxbc_desc, &options);
|
dump_dxbc(&dxbc, &dxbc_desc, &options);
|
||||||
|
Loading…
Reference in New Issue
Block a user