Commit 4c7e72bb authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Fix a memory leak in CreateSwapChain() error handling.

parent c8c073fc
......@@ -1566,6 +1566,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateSwapChain(IWineD3DDevice* iface,
break;
case SURFACE_UNKNOWN:
FIXME("Caller tried to create a SURFACE_UNKNOWN swapchain\n");
HeapFree(GetProcessHeap(), 0, object);
return WINED3DERR_INVALIDCALL;
}
object->wineD3DDevice = This;
......
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