mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Free the parse initializer in attribute (Valgrind).
This commit is contained in:
parent
521082afbe
commit
049327a270
Notes:
Alexandre Julliard
2024-02-09 22:56:13 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Zebediah Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/622
@ -5572,11 +5572,11 @@ attribute:
|
||||
$$->name = $2;
|
||||
hlsl_block_init(&$$->instrs);
|
||||
hlsl_block_add_block(&$$->instrs, $4.instrs);
|
||||
vkd3d_free($4.instrs);
|
||||
$$->loc = @$;
|
||||
$$->args_count = $4.args_count;
|
||||
for (i = 0; i < $4.args_count; ++i)
|
||||
hlsl_src_from_node(&$$->args[i], $4.args[i]);
|
||||
free_parse_initializer(&$4);
|
||||
}
|
||||
|
||||
attribute_list:
|
||||
|
Loading…
Reference in New Issue
Block a user