Commit 14dee7bd authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Fix memory leak in wined3d_swapchain_state_create() (Coverity).

parent 21c1ab7a
......@@ -1624,7 +1624,10 @@ HRESULT CDECL wined3d_swapchain_state_create(const struct wined3d_swapchain_desc
return E_OUTOFMEMORY;
if (FAILED(hr = wined3d_swapchain_state_init(s, desc, window, wined3d, adapter_idx)))
{
heap_free(s);
return hr;
}
*state = s;
......
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