d3dx9: Avoid double free on effect initialization failure.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni 2019-03-18 19:58:39 +01:00 committed by Alexandre Julliard
parent c8e195e179
commit cffe35488d
1 changed files with 0 additions and 1 deletions

View File

@ -6303,7 +6303,6 @@ static HRESULT d3dx9_base_effect_init(struct d3dx9_base_effect *base,
debugstr_a(skip_constants[i]), j);
HeapFree(GetProcessHeap(), 0, skip_constants_buffer);
HeapFree(GetProcessHeap(), 0, skip_constants);
d3dx9_base_effect_cleanup(effect);
return D3DERR_INVALIDCALL;
}
}