vkd3d-shader: Fix use-after-free on failure.
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
This commit is contained in:
parent
a19619ccbf
commit
1946e42367
|
@ -1229,6 +1229,7 @@ static bool vkd3d_dxil_build_entry(struct vkd3d_shader_library_entry_point *entr
|
|||
if (!entry->plain_entry_point)
|
||||
{
|
||||
vkd3d_free(entry->mangled_entry_point);
|
||||
entry->mangled_entry_point = NULL;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue