mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Free the constant defs array in hlsl_ctx_cleanup().
Spotted by Francisco Casas.
This commit is contained in:
parent
63631a8fd4
commit
44bf5556ae
Notes:
Alexandre Julliard
2023-07-17 23:25:52 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/276
@ -3380,6 +3380,8 @@ static void hlsl_ctx_cleanup(struct hlsl_ctx *ctx)
|
|||||||
vkd3d_free((void *)buffer->name);
|
vkd3d_free((void *)buffer->name);
|
||||||
vkd3d_free(buffer);
|
vkd3d_free(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vkd3d_free(ctx->constant_defs.regs);
|
||||||
}
|
}
|
||||||
|
|
||||||
int hlsl_compile_shader(const struct vkd3d_shader_code *hlsl, const struct vkd3d_shader_compile_info *compile_info,
|
int hlsl_compile_shader(const struct vkd3d_shader_code *hlsl, const struct vkd3d_shader_compile_info *compile_info,
|
||||||
|
Loading…
Reference in New Issue
Block a user