vkd3d-shader/hlsl: Free the parse initializer in attribute (Valgrind).

This commit is contained in:
Giovanni Mascellani 2024-02-01 12:45:17 +01:00 committed by Alexandre Julliard
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

View File

@ -5572,11 +5572,11 @@ attribute:
$$->name = $2; $$->name = $2;
hlsl_block_init(&$$->instrs); hlsl_block_init(&$$->instrs);
hlsl_block_add_block(&$$->instrs, $4.instrs); hlsl_block_add_block(&$$->instrs, $4.instrs);
vkd3d_free($4.instrs);
$$->loc = @$; $$->loc = @$;
$$->args_count = $4.args_count; $$->args_count = $4.args_count;
for (i = 0; i < $4.args_count; ++i) for (i = 0; i < $4.args_count; ++i)
hlsl_src_from_node(&$$->args[i], $4.args[i]); hlsl_src_from_node(&$$->args[i], $4.args[i]);
free_parse_initializer(&$4);
} }
attribute_list: attribute_list: