Commit cffe3548 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dx9: Avoid double free on effect initialization failure.

parent c8e195e1
...@@ -6303,7 +6303,6 @@ static HRESULT d3dx9_base_effect_init(struct d3dx9_base_effect *base, ...@@ -6303,7 +6303,6 @@ static HRESULT d3dx9_base_effect_init(struct d3dx9_base_effect *base,
debugstr_a(skip_constants[i]), j); debugstr_a(skip_constants[i]), j);
HeapFree(GetProcessHeap(), 0, skip_constants_buffer); HeapFree(GetProcessHeap(), 0, skip_constants_buffer);
HeapFree(GetProcessHeap(), 0, skip_constants); HeapFree(GetProcessHeap(), 0, skip_constants);
d3dx9_base_effect_cleanup(effect);
return D3DERR_INVALIDCALL; return D3DERR_INVALIDCALL;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment