From 2fd283e968bfd75424279387ae479a7bfaafcd5c Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Sun, 21 Nov 2021 19:45:16 +0300 Subject: [PATCH] d3d10/effect: Fix freed register table pointer (Coverity). Signed-off-by: Nikolay Sivov Signed-off-by: Matteo Bruni Signed-off-by: Alexandre Julliard --- dlls/d3d10/effect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c index 04250a1663e..b9992f84a8b 100644 --- a/dlls/d3d10/effect.c +++ b/dlls/d3d10/effect.c @@ -305,7 +305,7 @@ static void d3d10_effect_preshader_clear(struct d3d10_effect_preshader *p) unsigned int i; for (i = 0; i < ARRAY_SIZE(p->reg_tables); ++i) - heap_free(&p->reg_tables[i].f); + heap_free(p->reg_tables[i].f); if (p->code) ID3D10Blob_Release(p->code); heap_free(p->vars);