mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Fix some memory leaks in the function call rule.
This commit is contained in:
parent
d405295bc7
commit
da2435707b
Notes:
Alexandre Julliard
2023-03-09 22:26:36 +01:00
Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/116
@ -5300,8 +5300,12 @@ primary_expr:
|
|||||||
| var_identifier '(' func_arguments ')'
|
| var_identifier '(' func_arguments ')'
|
||||||
{
|
{
|
||||||
if (!($$ = add_call(ctx, $1, &$3, &@1)))
|
if (!($$ = add_call(ctx, $1, &$3, &@1)))
|
||||||
|
{
|
||||||
|
vkd3d_free($1);
|
||||||
YYABORT;
|
YYABORT;
|
||||||
}
|
}
|
||||||
|
vkd3d_free($1);
|
||||||
|
}
|
||||||
| NEW_IDENTIFIER
|
| NEW_IDENTIFIER
|
||||||
{
|
{
|
||||||
if (ctx->in_state_block)
|
if (ctx->in_state_block)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user