d3d10/effect: Fix freed register table pointer (Coverity).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2021-11-21 19:45:16 +03:00 committed by Alexandre Julliard
parent 12a1b4b360
commit 2fd283e968
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ static void d3d10_effect_preshader_clear(struct d3d10_effect_preshader *p)
unsigned int i; unsigned int i;
for (i = 0; i < ARRAY_SIZE(p->reg_tables); ++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) if (p->code)
ID3D10Blob_Release(p->code); ID3D10Blob_Release(p->code);
heap_free(p->vars); heap_free(p->vars);